Class: Cane::SimpleTaskRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/cane/task_runner.rb

Overview

Mirrors the Parallel gem’s interface but does not provide any parallelism. 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



16
17
18
# File 'lib/cane/task_runner.rb', line 16

def self.map(enumerable, &block)
  enumerable.map(&block)
end