Attributes
- Companion:
- object
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
- Self type
Members list
Value members
Concrete methods
Operator alias for zipParRight.
Operator alias for zipParLeft.
Replaces this sink's result with the provided value.
Replaces this sink's result with the provided value.
Attributes
Repeatedly runs the sink and accumulates its results into a chunk
Repeatedly runs the sink and accumulates its results into a chunk
Attributes
Repeatedly runs the sink for as long as its results satisfy the predicate
p
. The sink's results will be accumulated using the stepping function
f
.
Repeatedly runs the sink for as long as its results satisfy the predicate
p
. The sink's results will be accumulated using the stepping function
f
.
Attributes
Collects the leftovers from the stream when the sink succeeds and returns them as part of the sink's result
Collects the leftovers from the stream when the sink succeeds and returns them as part of the sink's result
Attributes
Transforms this sink's input elements.
Transforms this sink's input elements.
Attributes
Transforms this sink's input chunks. f
must preserve chunking-invariance
Transforms this sink's input chunks. f
must preserve chunking-invariance
Attributes
Effectfully transforms this sink's input chunks. f
must preserve
chunking-invariance
Effectfully transforms this sink's input chunks. f
must preserve
chunking-invariance
Attributes
Effectfully transforms this sink's input elements.
Effectfully transforms this sink's input elements.
Attributes
Transforms both inputs and result of this sink using the provided functions.
Transforms both inputs and result of this sink using the provided functions.
Attributes
Transforms both input chunks and result of this sink using the provided functions.
Transforms both input chunks and result of this sink using the provided functions.
Attributes
Effectfully transforms both input chunks and result of this sink using the
provided functions. f
and g
must preserve chunking-invariance
Effectfully transforms both input chunks and result of this sink using the
provided functions. f
and g
must preserve chunking-invariance
Attributes
Effectfully transforms both inputs and result of this sink using the provided functions.
Effectfully transforms both inputs and result of this sink using the provided functions.
Attributes
Returns a new sink with an attached finalizer. The finalizer is guaranteed to be executed so long as the sink begins execution (and regardless of whether or not it completes).
Returns a new sink with an attached finalizer. The finalizer is guaranteed to be executed so long as the sink begins execution (and regardless of whether or not it completes).
Attributes
Returns a new sink with an attached finalizer. The finalizer is guaranteed to be executed so long as the sink begins execution (and regardless of whether or not it completes).
Returns a new sink with an attached finalizer. The finalizer is guaranteed to be executed so long as the sink begins execution (and regardless of whether or not it completes).
Attributes
Filters the sink's input with the given predicate
Filters the sink's input with the given predicate
Attributes
Filters the sink's input with the given ZIO predicate
Filters the sink's input with the given ZIO predicate
Attributes
Creates a sink that produces values until one verifies the predicate f
.
Creates a sink that produces values until one verifies the predicate f
.
Attributes
Runs this sink until it yields a result, then uses that result to create another sink from the provided function which will continue to run until it yields a result.
Runs this sink until it yields a result, then uses that result to create another sink from the provided function which will continue to run until it yields a result.
This function essentially runs sinks in sequence.
Attributes
Folds over the result of the sink
Folds over the result of the sink
Attributes
Drains the remaining elements from the stream after the sink finishes
Drains the remaining elements from the stream after the sink finishes
Attributes
Transforms this sink's result.
Transforms this sink's result.
Attributes
Transforms the errors emitted by this sink using f
.
Transforms the errors emitted by this sink using f
.
Attributes
Transforms the full causes of failures emitted by this sink.
Transforms the full causes of failures emitted by this sink.
Attributes
Transforms the leftovers emitted by this sink using f
.
Transforms the leftovers emitted by this sink using f
.
Attributes
Effectfully transforms this sink's result.
Effectfully transforms this sink's result.
Attributes
Switch to another sink in case of failure
Switch to another sink in case of failure
Attributes
Provides the sink with its required environment, which eliminates its
dependency on R
.
Provides the sink with its required environment, which eliminates its
dependency on R
.
Attributes
Provides a layer to the sink, which translates it to another level.
Provides a layer to the sink, which translates it to another level.
Attributes
Transforms the environment being provided to the sink with the specified function.
Transforms the environment being provided to the sink with the specified function.
Attributes
Splits the environment into two parts, providing one part using the
specified layer and leaving the remainder R0
.
Splits the environment into two parts, providing one part using the
specified layer and leaving the remainder R0
.
val loggingLayer: ZLayer[Any, Nothing, Logging] = ???
val sink: ZSink[Logging with Database, Nothing, Unit] = ???
val sink2 = sink.provideSomeLayer[Database](loggingLayer)
Attributes
Runs both sinks in parallel on the input, , returning the result or the error from the one that finishes first.
Runs both sinks in parallel on the input, , returning the result or the error from the one that finishes first.
Attributes
Runs both sinks in parallel on the input, returning the result or the error from the one that finishes first.
Runs both sinks in parallel on the input, returning the result or the error from the one that finishes first.
Attributes
Runs both sinks in parallel on the input, using the specified merge function as soon as one result or the other has been computed.
Runs both sinks in parallel on the input, using the specified merge function as soon as one result or the other has been computed.
Attributes
Splits the sink on the specified predicate, returning a new sink that consumes elements until an element after the first satisfies the specified predicate.
Splits the sink on the specified predicate, returning a new sink that consumes elements until an element after the first satisfies the specified predicate.
Attributes
Summarize a sink by running an effect when the sink starts and again when it completes
Summarize a sink by running an effect when the sink starts and again when it completes
Attributes
Returns the sink that executes this one and times its execution.
Returns the sink that executes this one and times its execution.
Attributes
Converts ths sink to its underlying channel
Converts ths sink to its underlying channel
Attributes
Feeds inputs to this sink until it yields a result, then switches over to the provided sink until it yields a result, finally combining the two results into a tuple.
Feeds inputs to this sink until it yields a result, then switches over to the provided sink until it yields a result, finally combining the two results into a tuple.
Attributes
Runs both sinks in parallel on the input and combines the results in a tuple.
Runs both sinks in parallel on the input and combines the results in a tuple.
Attributes
Feeds inputs to this sink until it yields a result, then switches over to
the provided sink until it yields a result, finally combining the two
results with f
.
Feeds inputs to this sink until it yields a result, then switches over to
the provided sink until it yields a result, finally combining the two
results with f
.
Attributes
Runs both sinks in parallel on the input and combines the results using the provided function.
Runs both sinks in parallel on the input and combines the results using the provided function.