- Companion:
- class
Type members
Classlikes
An Emit[R, E, A, B]
represents an asynchronous callback that can be
called multiple times. The callback can be called with a value of type
ZIO[R, Option[E], Chunk[A]]
, where succeeding with a Chunk[A]
indicates
to emit those elements, failing with Some[E]
indicates to terminate with
that error, and failing with None
indicates to terminate with an end of
stream signal.
An Emit[R, E, A, B]
represents an asynchronous callback that can be
called multiple times. The callback can be called with a value of type
ZIO[R, Option[E], Chunk[A]]
, where succeeding with a Chunk[A]
indicates
to emit those elements, failing with Some[E]
indicates to terminate with
that error, and failing with None
indicates to terminate with an end of
stream signal.
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.
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.
Provides extension methods for streams that are sorted by distinct keys.
Provides extension methods for streams that are sorted by distinct keys.
Deprecated types
Value members
Concrete methods
Submerges the error case of an Either
into the ZStream
.
Submerges the error case of an Either
into the ZStream
.
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of a stream.
Accesses the environment of the stream in the context of a stream.
Creates a new ZStream from a managed effect that yields chunks. The
effect will be evaluated repeatedly until it fails with a None
(to
signify stream end) or a Some(E)
(to signify stream failure).
Creates a pure stream from a variable list of values
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
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
Concatenates all of the streams in the chunk to one stream.
Concatenates all of the streams in the chunk to one stream.
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.
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 for the more common point-wise variant.
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.
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 for the more common point-wise variant.
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.
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 for the more common point-wise variant.
The stream that dies with an exception described by msg
.
The stream that dies with an exception described by msg
.
Creates a zio.stream.ZStream from the given effect and drains it
Creates a zio.stream.ZStream from the given effect and drains it
Creates a one-element stream that never fails and executes the finalizer when it ends.
Creates a one-element stream that never fails and executes the finalizer when it ends.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
The hub will be shut down once the stream is closed.
Creates a stream from a subscription to a hub.
Creates a stream from a subscription to a hub.
The hub will be shut down once the stream is closed.
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.ZQueue of values. The queue will be shutdown once the stream is closed.
Creates a stream from an arbitrary number of chunks.
Creates a stream from an arbitrary number of chunks.
Creates a stream from an effect producing a value of type A
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 an effect producing a value of type A
or an empty
Stream
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.
The hub will be shut down once the stream is closed.
Creates a stream from a subscription to a hub.
Creates a stream from a subscription to a hub.
The hub will be shut down once the stream is closed.
Creates a stream from an iterable collection of values
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 effect producing a value of type Iterable[A]
Creates a stream from an iterator that may throw exceptions.
Creates a stream from an iterator that may throw exceptions.
Creates a stream from an iterator that may potentially throw exceptions
Creates a stream from an iterator that may potentially throw exceptions
Creates a stream from an iterator that does not throw exceptions.
Creates a stream from an iterator that does not throw exceptions.
Creates a stream from a Java iterator that may throw exceptions
Creates a stream from a Java iterator that may throw exceptions
Creates a stream from a Java iterator that may potentially throw exceptions
Creates a stream from a Java iterator that may potentially throw exceptions
Creates a stream from a zio.ZQueue of values
Creates a stream from a zio.ZQueue of values
- Value parameters:
- maxChunkSize
Maximum number of queued elements to put in one chunk in the stream
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.ZQueue of values. The queue will be shutdown once the stream is closed.
- Value parameters:
- maxChunkSize
Maximum number of queued elements to put in one chunk in the stream
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.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.
The infinite stream of iterative function application: a, f(a), f(f(a)), f(f(f(a))), ...
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
Creates a single-valued stream from a managed resource
Merges a variable list of streams in a non-deterministic fashion. Up to n
streams may be consumed in parallel and up to outputBuffer
chunks may be
buffered by this operator.
Merges a variable list of streams in a non-deterministic fashion. Up to n
streams may be consumed in parallel and up to outputBuffer
chunks may be
buffered by this operator.
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.
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.
Like unfoldChunk, 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.
Like unfoldChunk, 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.
Like unfoldChunkM, 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.
Like unfoldChunkM, 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.
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.
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)
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 a value of type A
which repeats
forever.
Creates a stream from an effect producing chunks of A
values which
repeats forever.
Creates a stream from an effect producing chunks of A
values which
repeats forever.
Creates a stream from an effect producing chunks of A
values until it
fails with None.
Creates a stream from an effect producing chunks of A
values until it
fails with None.
Creates a stream from an effect producing values of type A
until it fails
with None.
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 is
repeated using the specified schedule.
Creates a stream from an effect producing a value of type A
, which is
repeated using the specified schedule.
Accesses the specified service in the environment of the stream.
Accesses the specified service in the environment of the stream.
Accesses the specified service in the environment of the stream in the context of an effect.
Accesses the specified service in the environment of the stream in the context of an effect.
Accesses the specified service in the environment of the stream in the context of a stream.
Accesses the specified service in the environment of the stream in the context of a stream.
Accesses the specified services in the environment of the stream.
Accesses the specified services in the environment of the stream.
Accesses the specified services in the environment of the stream.
Accesses the specified services in the environment of the stream.
Accesses the specified services in the environment of the stream.
Accesses the specified services in the environment of the stream.
A stream that emits Unit values spaced by the specified duration.
A stream that emits Unit values spaced by the specified duration.
Creates a stream by peeling off the "layers" of a value of type S
Creates a stream by peeling off the "layers" of a value of type S
Creates a stream by peeling off the "layers" of a value of type S
.
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
Creates a stream by effectfully 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
Creates a stream by effectfully peeling off the "layers" of a value of type
S
Returns the specified stream if the given condition is satisfied, otherwise returns an empty stream.
Returns the specified stream if the given condition is satisfied, otherwise returns an empty stream.
Returns the resulting stream when the given PartialFunction
is defined
for the given value, otherwise returns an empty stream.
Returns the resulting stream when the given PartialFunction
is defined
for the given value, otherwise returns an empty stream.
Returns the resulting stream when the given PartialFunction
is defined
for the given effectful value, otherwise returns an empty stream.
Returns the resulting stream when the given PartialFunction
is defined
for the given effectful value, otherwise returns an empty stream.
Returns the specified stream if the given effectful condition is satisfied, otherwise returns an empty stream.
Returns the specified stream if the given effectful condition is satisfied, otherwise returns an empty stream.
Zips the specified streams together with the specified function.
Zips the specified streams together with the specified function.
Zips with specified streams together with the specified function.
Zips with specified streams together with the specified 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.
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.
Inherited methods
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. The optionality of the error type E
can be used to signal the end
of the stream, by setting it to None
.
- Inherited from:
- ZStreamPlatformSpecificConstructors
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 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
.
- Inherited from:
- ZStreamPlatformSpecificConstructors
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 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
.
- Inherited from:
- ZStreamPlatformSpecificConstructors
Creates a stream from an asynchronous callback that can be called multiple
times. The registration of the callback itself returns an a managed
resource. 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 a managed
resource. The optionality of the error type E
can be used to signal the
end of the stream, by setting it to None
.
- Inherited from:
- ZStreamPlatformSpecificConstructors
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
.
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
.
- Inherited from:
- ZStreamPlatformSpecificConstructors
Creates a stream from a java.io.InputStream
Creates a stream from a java.io.InputStream
- Inherited from:
- ZStreamPlatformSpecificConstructors
Creates a stream from a java.io.InputStream
. Ensures that the input
stream is closed after it is exhausted.
Creates a stream from a java.io.InputStream
. Ensures that the input
stream is closed after it is exhausted.
- Inherited from:
- ZStreamPlatformSpecificConstructors
Creates a stream from a managed java.io.InputStream
value.
Creates a stream from a managed java.io.InputStream
value.
- Inherited from:
- ZStreamPlatformSpecificConstructors