Class: Daemon::Utils::PerThreadRegistry

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/onapp/engine/utils/per_thread_registry.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) registry



20
21
22
# File 'lib/onapp/engine/utils/per_thread_registry.rb', line 20

def registry
  thread[key] ||= {}
end

- (Object) thread



16
17
18
# File 'lib/onapp/engine/utils/per_thread_registry.rb', line 16

def thread
  Thread.current
end