Class: Deferred::DefaultThreadpoolJob
- Includes:
- ThreadpoolJob
- Defined in:
- lib/deferred/default.rb
Overview
Like Default but includes the ThreadpoolJob module.
Instance Attribute Summary
Attributes included from ThreadpoolJob
Instance Method Summary collapse
-
#initialize(&blk) ⇒ DefaultThreadpoolJob
constructor
if you pass a block it will be used as the on_run block.
Methods included from ThreadpoolJob
#call_on_run_block, #defer!, #handle_completion, #on_run
Methods included from InstanceMethods
#callback, #chain_err, #chain_to, #ensure_that, #errback, #errback_on_exception, #timeout
Constructor Details
#initialize(&blk) ⇒ DefaultThreadpoolJob
if you pass a block it will be used as the on_run block
31 32 33 |
# File 'lib/deferred/default.rb', line 31 def initialize(&blk) on_run(&blk) end |