Accepted connection made to a specific channel
AsynchronousServerSocketChannel
Accepted connection made to a specific channel
AsynchronousServerSocketChannel
An Emit[R, E, A, B]
represents an asynchronous callback that can be
called multiple times.
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.
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.
A ZStreamConstructor[Input]
knows how to construct a ZStream
value from
an input of type Input
.
A ZStreamConstructor[Input]
knows how to construct a ZStream
value from
an input of type Input
. This allows the type of the ZStream
value
constructed to depend on Input
.
(Since version 1.0.0) use zio.stream.Take instead
The default chunk size used by the various combinators and constructors of ZStream.
Submerges the error case of an Either
into the ZStream
.
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 pure stream from a variable list of values
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.
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.
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 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
.
Locks the execution of the specified stream to the blocking executor.
Locks the execution of the specified stream to the blocking executor. Any streams that are composed after this one will automatically be shifted back to the previous executor.
Concatenates all of the streams in the chunk to one stream.
The stream that dies with the ex
.
The stream that dies with an exception described by msg
.
The stream that ends with the zio.Exit value exit
.
The empty stream
Accesses the whole environment of the stream.
Accesses the environment of the stream.
Accesses the environment of the stream in the context of a stream.
Accesses the environment of the stream in the context of an effect.
Creates a stream that executes the specified effect but emits no elements.
The stream that always fails with the error
The stream that always fails with cause
.
Creates a one-element stream that never fails and executes the finalizer when it ends.
Creates a stream from a zio.Chunk of values
Creates a stream from a zio.Chunk of values
a finite stream of values
Creates a stream from a subscription to a hub.
Creates a stream from a subscription to a hub in the context of a managed effect.
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.
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 queue of values
Creates a stream from a queue of values.
Creates a stream from a queue of values. The queue will be shutdown once the stream is closed.
Creates a stream from an arbitrary number of chunks.
Creates a stream of bytes from the specified file.
Creates a stream of bytes from the specified file.
Creates a stream of bytes from a file at the specified path represented by a string.
Creates a stream of bytes from a file at the specified path represented by a string.
Creates a stream of bytes from a file at the specified uri.
Creates a stream of bytes from a file at the specified uri.
Creates a stream from a subscription to a hub.
Creates a stream from a subscription to a hub in the context of a managed effect.
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.
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 java.io.InputStream
Creates a stream from a managed java.io.InputStream
value.
Creates a stream from a java.io.InputStream
.
Creates a stream from a java.io.InputStream
. Ensures that the input
stream is closed after it is exhausted.
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 a managed iterator
Creates a stream from an iterator
Creates a stream from an iterator that may potentially throw exceptions
Creates a stream from a Java iterator that may throw exceptions
Creates a stream from a managed iterator
Creates a stream from a Java iterator
Creates a stream from a Java iterator that may potentially throw exceptions
Creates a stream from a Java stream
Creates a stream from a Java stream
Creates a stream from a managed Java stream
Creates a stream from a managed Java stream
Creates a stream from a Java stream
Creates a stream from a Java stream
Creates a stream from a Java stream
Creates a stream from a Java stream
Creates a stream from a callback that writes to java.io.OutputStream
.
Creates a stream from a callback that writes to java.io.OutputStream
.
Note: the input stream will be closed after the write
is done.
Creates a stream of bytes from a file at the specified path.
Creates a stream of bytes from a file at the specified path.
Creates a stream from a queue of values
Creates a stream from a queue of values
Maximum number of queued elements to put in one chunk in the stream
Creates a stream from a queue of values.
Creates a stream from a queue of values. The queue will be shutdown once the stream is closed.
Maximum number of queued elements to put in one chunk in the stream
Creates a stream from java.io.Reader
.
Creates a stream from java.io.Reader
.
Creates a stream from managed java.io.Reader
.
Creates a stream from managed java.io.Reader
.
Creates a stream from an effect producing java.io.Reader
.
Creates a stream from an effect producing java.io.Reader
.
Creates a stream from the resource specified in path
Creates a stream from the resource specified in path
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.
Create a stream of accepted connection from server socket Emit socket
Connection
from which you can read / write and ensure it is closed after
it is used
Create a stream of accepted connection from server socket Emit socket
Connection
from which you can read / write and ensure it is closed after
it is used
Creates a stream from a zio.stm.TQueue 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
The infinite stream of iterative function application: a, f(a), f(f(a)), f(f(f(a))), ...
Logs the specified message at the current log level.
Annotates each log in streams composed after this with the specified log annotation.
Retrieves the log annotations associated with the current scope.
Logs the specified message at the debug log level.
Logs the specified message at the error log level.
Logs the specified cause as an error.
Logs the specified message at the fatal log level.
Logs the specified message at the informational log level.
Sets the log level for streams composed after this.
Adjusts the label for the logging span for streams composed after this.
Logs the specified message at the trace log level.
Logs the specified message at the warning log level.
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
chunks 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 than the unfolding of the state.
Like unfold, 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.
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 unfoldChunkZIO, but allows the emission of values to end one step further than the unfolding of the state.
Like unfoldChunkZIO, 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 unfoldZIO, but allows the emission of values to end one step further than the unfolding of the state.
Like unfoldZIO, 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)
Repeats the provided value infinitely.
Repeats the value using the provided schedule.
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 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.
Accesses the specified service in the environment of the effect.
Accesses the service corresponding to the specified key in the environment.
Accesses the specified service in the environment of the stream.
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 an effect.
Creates a single-valued pure stream
Returns a lazily constructed stream.
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 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
A stream that contains a single Unit
value.
Creates a stream produced from an effect
Creates a stream produced from a ZManaged
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 effectful value, otherwise returns an empty stream.
Returns the specified stream if the given effectful condition is satisfied, otherwise returns an empty stream.
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of an effect.
(Since version 2.0.0) use environmentWith
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of an effect.
(Since version 2.0.0) use environmentWithZIO
Accesses the environment of the stream in the context of a stream.
Accesses the environment of the stream in the context of a stream.
(Since version 2.0.0) use environmentWithStream
Accesses the environment of the stream in the context of an effect.
Accesses the environment of the stream in the context of an effect.
(Since version 2.0.0) use environmentWithZIO
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
(Since version 2.0.0) use acquireReleaseWith
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
(Since version 2.0.0) use acquireReleaseExitWith
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.
(Since version 2.0.0) use cross
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.
(Since version 2.0.0) use cross
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.
(Since version 2.0.0) use instance method cross
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
.
(Since version 2.0.0) use async
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
.
(Since version 2.0.0) use asyncInterrupt
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
.
(Since version 2.0.0) use asyncZIO
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
.
(Since version 2.0.0) use asyncMaybe
Creates a stream from an blocking iterator that may throw exceptions.
Creates a stream from an blocking iterator that may throw exceptions.
(Since version 2.0.0) use blocking(fromIterator())
Creates a stream from an blocking Java iterator that may throw exceptions.
Creates a stream from an blocking Java iterator that may throw exceptions.
(Since version 2.0.0) use blocking(fromJavaIterator())
Creates a stream from an effect producing a value of type A
Creates a stream from an effect producing a value of type A
(Since version 2.0.0) use fromZIO
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
(Since version 2.0.0) use fromZIOOption
Creates a stream from a java.io.InputStream
.
Creates a stream from a java.io.InputStream
. Ensures that the input
stream is closed after it is exhausted.
(Since version 2.0.0) use fromInputStreamZIO
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]
(Since version 2.0.0) use fromIterableZIO
Creates a stream from an iterator that may potentially throw exceptions
Creates a stream from an iterator that may potentially throw exceptions
(Since version 2.0.0) use fromIteratorZIO
Creates a stream from an iterator
Creates a stream from an iterator
(Since version 2.0.0) use fromIteratorSucceed
Creates a stream from a Java iterator that may potentially throw exceptions
Creates a stream from a Java iterator that may potentially throw exceptions
(Since version 2.0.0) use fromJavaIteratorZIO
Creates a stream from a Java iterator
Creates a stream from a Java iterator
(Since version 2.0.0) use fromJavaIteratorSucceed
Creates a stream from a Java stream
Creates a stream from a Java stream
(Since version 2.0.0) use fromJavaStreamZIO
Creates a stream from a Java stream
Creates a stream from a Java stream
(Since version 2.0.0) use fromJavaStreamSucceed
Creates a stream from an effect producing java.io.Reader
.
Creates a stream from an effect producing java.io.Reader
.
(Since version 2.0.0) use fromReaderZIO
The stream that always halts with cause
.
The stream that always halts with cause
.
(Since version 2.0.0) use failCause
Like unfoldChunkM, but allows the emission of values to end one step further than the unfolding of the state.
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.
(Since version 2.0.0) use paginateChunkZIO
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.
(Since version 2.0.0) use paginateZIO
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.
(Since version 2.0.0) use repeatZIO
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.
(Since version 2.0.0) use repeatZIOChunk
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.
(Since version 2.0.0) use repeatZIOChunkOption
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.
(Since version 2.0.0) use repeatZIOOption
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.
(Since version 2.0.0) use repeatZIOWith
Repeats the value using the provided schedule.
Repeats the value using the provided schedule.
(Since version 2.0.0) use repeatWithSchedule
Accesses the specified services in the environment of the effect.
Accesses the specified services in the environment of the effect.
(Since version 2.0.0) use service
Accesses the specified services in the environment of the effect.
Accesses the specified services in the environment of the effect.
(Since version 2.0.0) use service
Accesses the specified services in the environment of the effect.
Accesses the specified services in the environment of the effect.
(Since version 2.0.0) use service
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
(Since version 2.0.0) use unfoldChunkZIO
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
(Since version 2.0.0) use unfoldZIO
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.
(Since version 2.0.0) use whenCaseZIO
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.
(Since version 2.0.0) use whenZIO
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.
(Since version 2.0.0) use zip
Zips with specified streams together with the specified function.
Zips with specified streams together with the specified function.
(Since version 2.0.0) use zip
Zips the specified streams together with the specified function.
Zips the specified streams together with the specified function.
(Since version 2.0.0) use zip