Class: Celluloid::CallChain

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

Class Method Summary collapse

Class Method Details

.current_idObject


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

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

.current_id=(value) ⇒ Object


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

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