Terminal operation that consumes a stream and produces a result.
Sinks trigger stream execution and return a promise that resolves when all items have been processed.
The type of input values
The type of result (defaults to V)
Consumes an async iterable and produces a final result.
The source async iterable to consume
A promise resolving to the final result
Terminal operation that consumes a stream and produces a result.
Sinks trigger stream execution and return a promise that resolves when all items have been processed.