Class: Nexo::Concurrent::Task
- Inherits:
-
Struct
- Object
- Struct
- Nexo::Concurrent::Task
- Defined in:
- lib/nexo/concurrent.rb
Overview
A submitted unit of work. Wrapping the block in a Struct keeps submission
order explicit (the index into @tasks is the index into the results).
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
21 22 23 |
# File 'lib/nexo/concurrent.rb', line 21 def block @block end |