Executes a pure fold over the stream of values.
Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream.
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.
Executes a pure fold over the stream of values.
Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled.
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:
Stream(1) .fold(0)(_ <= 4)((s, a) => UIO(s + a)) // Managed[Nothing, Int] .use(ZIO.succeed) // UIO[Int] == 5
function which defines the early termination condition
Like ZStream#runForeachChunk, but returns a scoped ZIO so the
finalization order can be controlled.
Like ZStream#foreach, but returns a ZManaged so the finalization
order can be controlled.
Like ZStream#runForeachWhile, but returns a scoped ZIO so the
finalization order can be controlled.
Like ZStream#runIntoHub, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#runIntoQueue, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#runIntoQueue, but provides the result as a ZManaged to allow for scope composition.
Executes a pure fold over the stream of values.
Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream.
(Since version 2.0.0) user runFoldManaged
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.
(Since version 2.0.0) use runFoldScopedManaged
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.
(Since version 2.0.0) use runFoldManagedZIO
Executes a pure fold over the stream of values.
Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled.
(Since version 2.0.0) use runFoldWhileManaged
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:
Stream(1) .forever // an infinite Stream of 1's .fold(0)(_ <= 4)((s, a) => UIO(s + a)) // Managed[Nothing, Int] .use(ZIO.succeed) // UIO[Int] == 5
function which defines the early termination condition
(Since version 2.0.0) use runFoldWhileManagedZIO
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:
Stream(1) .forever // an infinite Stream of 1's .fold(0)(_ <= 4)((s, a) => UIO(s + a)) // Managed[Nothing, Int] .use(ZIO.succeed) // UIO[Int] == 5
function which defines the early termination condition
(Since version 2.0.0) use runFoldWhileManagedZIO
Like ZStream#runForeachChunk, but returns a ZManaged so the
finalization order can be controlled.
Like ZStream#runForeachChunk, but returns a ZManaged so the
finalization order can be controlled.
(Since version 2.0.0) use runForeachChunkManaged
Like ZStream#foreach, but returns a ZManaged so the finalization
order can be controlled.
Like ZStream#foreach, but returns a ZManaged so the finalization
order can be controlled.
(Since version 2.0.0) run runForeachManaged
Like ZStream#runForeachWhile, but returns a ZManaged so the
finalization order can be controlled.
Like ZStream#runForeachWhile, but returns a ZManaged so the
finalization order can be controlled.
(Since version 2.0.0) use runForeachWhileManaged
Like ZStream#intoHub, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#intoHub, but provides the result as a ZManaged to allow for scope composition.
(Since version 2.0.0) use runIntoHubManaged
Like ZStream#into, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#into, but provides the result as a ZManaged to allow for scope composition.
(Since version 2.0.0) use runIntoQueueManaged
Like ZStream#ntoQueue, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#ntoQueue, but provides the result as a ZManaged to allow for scope composition.
(Since version 2.0.0) use runIntoQueueManaged
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.
(Since version 2.0.0) use runFoldManagedZIO
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:
Stream(1) .forever // an infinite Stream of 1's .fold(0)(_ <= 4)((s, a) => UIO(s + a)) // Managed[Nothing, Int] .use(ZIO.succeed) // UIO[Int] == 5
function which defines the early termination condition
(Since version 2.0.0) use runFoldWhileManagedZIO
Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.
(Since version 2.0.0) use runIntoQueueElementsManaged
Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.
Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.
(Since version 2.0.0) use runIntoQueueManaged