Class: Liebre::Actor::Context::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/liebre/actor/context/handler.rb

Constant Summary collapse

DEFAULT_POOL_SIZE =
5

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Handler

Returns a new instance of Handler.



10
11
12
# File 'lib/liebre/actor/context/handler.rb', line 10

def initialize opts
  @opts = opts
end

Instance Method Details

#call(*args, &block) ⇒ Object



14
15
16
# File 'lib/liebre/actor/context/handler.rb', line 14

def call *args, &block
  pool.post { handle(args, block) }
end