Concurrent::Stream::SendRecv(B, V, E, SC)
Inherits Concurrent::Stream::Receive / Concurrent::Stream::Base / Reference / Object
map, select, run and tee run in a fiber pool.
batch runs in a single fiber
All other methods "join" in the calling fiber.
Exceptions are raised in #each when joined.
TODO: better error handling. B=block V=value E=accumulated_error SC=scope
Constructors
Instance methods
Groups results in to chunks up to the given size. Runs in a single fiber. Multiple fibers would delay further stream processing.
Parallel map. &block is evaluated in a fiber pool.
Parallel run. &block is evaluated in a fiber pool.
Further processing is not possible except for #wait.
Parallel select. &block is evaluated in a fiber pool.
Parallel tee. &block is evaluated in a fiber pool.
The original message is passed to the next Stream.