Class: Concurrent::ImmediateExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrent/immediate_executor.rb

Instance Method Summary collapse

Instance Method Details

#<<(block) ⇒ Object



8
9
10
11
# File 'lib/concurrent/immediate_executor.rb', line 8

def <<(block)
  post(&block)
  self
end

#post(*args, &block) ⇒ Object



4
5
6
# File 'lib/concurrent/immediate_executor.rb', line 4

def post(*args, &block)
  block.call(*args)
end