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 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



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

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