Class: Cane::SimpleTaskRunner
- Inherits:
-
Object
- Object
- Cane::SimpleTaskRunner
- Defined in:
- lib/cane.rb
Overview
Mirrors the Parallel gem’s interface but does not provide any parralleism. This is faster for smaller tasks since it doesn’t incur any overhead for creating new processes and communicating between them.
Class Method Summary collapse
Class Method Details
.map(enumerable, &block) ⇒ Object
24 25 26 |
# File 'lib/cane.rb', line 24 def self.map(enumerable, &block) enumerable.map(&block) end |