Creates a sink checking if any item satisfies the predicate.
Creates a sink checking if all items satisfy the predicate.
Creates a sink counting the total number of items in the stream.
Creates a sink retrieving the first item that satisfies the predicate.
Creates a sink executing a side effect for each item and consuming the stream.
Creates a sink reducing the stream to a single value without an initial value.
Creates a sink collecting all items into an array.
Creates a sink collecting all unique items into a set.
Creates a sink collecting items into a map using item values.
Creates a sink joining all items into a string using a separator.
Terminal operations that consume streams and produce final results.
Remarks
Sinks trigger stream execution and return promises that resolve when processing completes. They represent the final stage in a pipeline, collecting, aggregating, or validating stream data.