Class: Riffer::Runner::Sequential

Inherits:
Riffer::Runner show all
Defined in:
lib/riffer/runner/sequential.rb

Overview

Processes items sequentially in the current thread — the default runner.

Instance Method Summary collapse

Instance Method Details

#map(items, context:, &block) ⇒ Object

– : (Array, context: Riffer::Agent::Context?) { (untyped) -> untyped } -> Array



8
9
10
# File 'lib/riffer/runner/sequential.rb', line 8

def map(items, context:, &block)
  items.map(&block)
end