ZManagedZStreamSyntax
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
Executes a pure 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. Returns a managed value that represents the scope of the stream.
Attributes
Executes an effectful 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. Returns a managed value that represents the scope of the stream.
Attributes
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 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.
Attributes
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:
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) => ZIO.succeed(s + a)) // Managed[Nothing, Int]
.use(ZIO.succeed) // UIO[Int] == 5
Value parameters
- cont
-
function which defines the early termination condition
Attributes
Like ZStream#runForeachChunk, but returns a scoped ZIO
so the finalization order can be controlled.
Like ZStream#runForeachChunk, but returns a scoped ZIO
so the finalization order can be controlled.
Attributes
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.
Attributes
Like ZStream#runForeachWhile, but returns a scoped ZIO
so the finalization order can be controlled.
Like ZStream#runForeachWhile, but returns a scoped ZIO
so the finalization order can be controlled.