Class: DepthFirst::ParallelOrganizer
- Inherits:
-
SequentialOrganizer
- Object
- Task
- SequentialOrganizer
- DepthFirst::ParallelOrganizer
- Defined in:
- lib/depth_first/parallel_organizer.rb
Overview
Base parallel organizer class
Constant Summary
Constants inherited from SequentialOrganizer
Instance Attribute Summary
Attributes inherited from Task
Instance Method Summary collapse
Methods inherited from Task
Constructor Details
This class inherits a constructor from DepthFirst::Task
Instance Method Details
#perform ⇒ Object
4 5 6 7 |
# File 'lib/depth_first/parallel_organizer.rb', line 4 def perform tasks.map { |task| execute_promise(task) } .reduce() { |a, e| resolve_promise(a, e) } end |