Class: Riffer::Runner::Sequential

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

Overview

Processes items sequentially in the current thread.

This is the default runner used when no concurrency is needed.

Instance Method Summary collapse

Instance Method Details

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

– : (Array, context: Hash[Symbol, untyped]?) { (untyped) -> untyped } -> Array



11
12
13
# File 'lib/riffer/runner/sequential.rb', line 11

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