Attributes
- Companion
- object
- Source
- ZSink.scala
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
- Self type
-
Members list
Value members
Concrete methods
Operator alias for zipParRight.
Operator alias for zipRight.
Operator alias for zipParLeft.
Operator alias for zipPar.
Operator alias for zipLeft.
Operator alias for zip.
Replaces this sink's result with the provided value.
Repeatedly runs the sink and accumulates its results into a chunk
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Transforms this sink's input elements.
Transforms this sink's input chunks. f must preserve chunking-invariance
Transforms this sink's input chunks. f must preserve chunking-invariance
Attributes
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Effectfully transforms this sink's input elements.
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Filters the sink's input with the given predicate
Filters the sink's input with the given ZIO predicate
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Attributes
- Source
- ZSink.scala
Folds over the result of the sink
Drains the remaining elements from the stream after the sink finishes
Transforms this sink's result.
Transforms the errors emitted by this sink using f.
Transforms the full causes of failures emitted by this sink.
Transforms the errors emitted by this sink using f.
Transforms the leftovers emitted by this sink using f.
Effectfully transforms this sink's result.
Switch to another sink in case of failure
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
- Source
- ZSink.scala
Provides a layer to the sink, which translates it to another level.
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Attributes
- Source
- ZSink.scala
Attributes
- Source
- ZSink.scala
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
- Source
- ZSink.scala
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
- Source
- ZSink.scala
Returns the sink that executes this one and times its execution.
Converts ths sink to its underlying channel
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
- Source
- ZSink.scala
Like zip, but keeps only the result from the that sink.
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
- Source
- ZSink.scala
Like zipPar, but keeps only the result from this sink.
Like zipPar, but keeps only the result from the that sink.
Like zip, but keeps only the result from this sink.
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
- Source
- ZSink.scala
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.
Attributes
- Source
- ZSink.scala