Class: Celluloid::Internals::CallChain

Inherits:
Object
  • Object
show all
Defined in:
lib/celluloid/internals/call_chain.rb

Class Method Summary collapse

Class Method Details

.current_idObject



10
11
12
# File 'lib/celluloid/internals/call_chain.rb', line 10

def self.current_id
  Thread.current[:celluloid_chain_id]
end

.current_id=(value) ⇒ Object



4
5
6
7
8
# File 'lib/celluloid/internals/call_chain.rb', line 4

def self.current_id=(value)
  Thread.current[:celluloid_chain_id] = value
  task = Thread.current[:celluloid_task]
  task.chain_id = value if task
end