Representation of a grouped stream.
Representation of a grouped stream. This allows to filter which groups will be processed. Once this is applied all groups will be processed in parallel and the results will be merged in arbitrary order.
Describes an effectful pull from a stream.
Describes an effectful pull from a stream. The optionality of the error channel denotes
normal termination of the stream when None
and an error when Some(e: E)
.
Submerges the error case of an Either
into the ZStream
.
Accesses the environment of the stream.
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of a stream.
Creates a stream from a scoped Pull.
Creates a pure stream from a variable list of values
Creates a stream from a single value that will get cleaned up after the stream is consumed
Creates a stream from a single value that will get cleaned up after the stream is consumed
Composes the specified streams to create a cartesian product of elements with a specified function.
Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent stream would be run multiple times, for every combination of elements in the prior streams.
See also ZStream#zipN[R,E,A,B,C,D,F]* for the more common point-wise variant.
Composes the specified streams to create a cartesian product of elements with a specified function.
Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent stream would be run multiple times, for every combination of elements in the prior streams.
See also ZStream#zipN[R,E,A,B,C,D]* for the more common point-wise variant.
Composes the specified streams to create a cartesian product of elements with a specified function.
Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent streams would be run multiple times, for every combination of elements in the prior streams.
See also ZStream#zipN[R,E,A,B,C]* for the more common point-wise variant.
The stream that always dies with the ex
.
The stream that always dies with an exception described by msg
.
Creates a stream from an asynchronous callback that can be called multiple times.
Creates a stream from an asynchronous callback that can be called multiple times.
The optionality of the error type E
can be used to signal the end of the stream,
by setting it to None
.
Creates a stream from an asynchronous callback that can be called multiple times.
Creates a stream from an asynchronous callback that can be called multiple times.
The registration of the callback returns either a canceler or synchronously returns a stream.
The optionality of the error type E
can be used to signal the end of the stream, by
setting it to None
.
Creates a stream from an asynchronous callback that can be called multiple times The registration of the callback itself returns an effect.
Creates a stream from an asynchronous callback that can be called multiple times
The registration of the callback itself returns an effect. The optionality of the
error type E
can be used to signal the end of the stream, by setting it to None
.
Creates a stream from an asynchronous callback that can be called multiple times.
Creates a stream from an asynchronous callback that can be called multiple times.
The registration of the callback can possibly return the stream synchronously.
The optionality of the error type E
can be used to signal the end of the stream,
by setting it to None
.
The empty stream
Accesses the whole environment of the stream.
The stream that always fails with the error
Creates an empty stream that never fails and executes the finalizer when it ends.
Flattens nested streams.
Flattens a stream of streams into a stream by executing a non-deterministic concurrent merge.
Flattens a stream of streams into a stream by executing a non-deterministic
concurrent merge. Up to n
streams may be consumed in parallel and up to
outputBuffer
elements may be buffered by this operator.
Like flattenPar, but executes all streams concurrently.
Creates a stream from a zio.Chunk of values
Creates a stream from an effect producing a value of type A
Creates a stream from an effect producing a value of type A
or an empty Stream
Creates a stream from a java.io.InputStream
Creates a stream from an iterable collection of values
Creates a stream from an effect producing a value of type Iterable[A]
Creates a stream from an iterator
Creates a stream from a managed iterator
Creates a stream from a Java iterator
Creates a stream from a managed iterator
Creates a stream from a zio.ZQueue of values
Creates a stream from a zio.ZQueue of values.
Creates a stream from a zio.ZQueue of values. The queue will be shutdown once the stream is closed.
Creates a stream from a zio.Schedule that does not require any further input.
Creates a stream from a zio.Schedule that does not require any further input. The stream will emit an element for each value output from the schedule, continuing for as long as the schedule continues.
Creates a stream from a zio.stm.TQueue of values.
The stream that always halts with cause
.
The infinite stream of iterative function application: a, f(a), f(f(a)), f(f(f(a))), ...
Creates a single-valued stream from a managed resource
Merges a variable list of streams in a non-deterministic fashion.
Merges a variable list of streams in a non-deterministic fashion.
Up to n
streams may be consumed in parallel and up to
outputBuffer
elements may be buffered by this operator.
Like mergeAll, but runs all streams concurrently.
The stream that never produces any value or fails with any error.
Like unfold, but allows the emission of values to end one step further the unfolding of the state.
Like unfold, but allows the emission of values to end one step further the unfolding of the state. This is useful for embedding paginated APIs, hence the name.
Like unfoldM, but allows the emission of values to end one step further than the unfolding of the state.
Like unfoldM, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.
Constructs a stream from a range of integers (lower bound included, upper bound not included)
Creates a stream from an effect producing a value of type A
which repeats forever
Creates a stream from an effect producing values of type A
until it fails with None.
Creates a stream from an effect producing a value of type A
which repeats using the specified schedule
Creates a single-valued pure stream
Creates a stream by peeling off the "layers" of a value of type S
Creates a stream by effectfully peeling off the "layers" of a value of type S
The stream of units
Creates a stream produced from an effect
Creates a stream produced from a ZManaged
Returns an effect that executes the specified effects in parallel,
combining their results with the specified f
function.
Returns an effect that executes the specified effects in parallel,
combining their results with the specified f
function. If any effect
fails, then the other effects will be interrupted.
Zips with specified streams together with the specified function.
Zips the specified streams together with the specified function.