Module: FiberAudit::Runtime::Probes::ThreadState::Hook
- Defined in:
- lib/fiber_audit/runtime/probes/thread_state.rb
Instance Method Summary collapse
Instance Method Details
#[] ⇒ Object
16 17 18 19 20 |
# File 'lib/fiber_audit/runtime/probes/thread_state.rb', line 16 def [](...) return super unless equal?(Thread.current) Registry.observe(operation: 'Thread.current.[]') { super } end |
#[]= ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/fiber_audit/runtime/probes/thread_state.rb', line 22 def []=(...) if equal?(Thread.current) Registry.observe(operation: 'Thread.current.[]=') { super } else super end end |