Class: Liebre::Actor::Context::Handler
- Inherits:
-
Object
- Object
- Liebre::Actor::Context::Handler
- Defined in:
- lib/liebre/actor/context/handler.rb
Constant Summary collapse
- DEFAULT_POOL_SIZE =
5
Instance Method Summary collapse
- #call(*args, &block) ⇒ Object
-
#initialize(opts) ⇒ Handler
constructor
A new instance of Handler.
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 |