Trait/Object

zio.stream

ZChannel

Related Docs: object ZChannel | package stream

Permalink

sealed trait ZChannel[-Env, -InErr, -InElem, -InDone, +OutErr, +OutElem, +OutDone] extends AnyRef

A ZChannel[In, Env, Err, Out, Z] is a nexus of I/O operations, which supports both reading and writing. A channel may read values of type In and write values of type Out. When the channel finishes, it yields a value of type Z. A channel may fail with a value of type Err.

Channels are the foundation of ZIO Streams: both streams and sinks are built on channels. Most users shouldn't have to use channels directly, as streams and sinks are much more convenient and cover all common use cases. However, when adding new stream and sink operators, or doing something highly specialized, it may be useful to use channels directly.

Channels compose in a variety of ways:

Self Type
ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZChannel
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def *>[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]

    Permalink

    Returns a new channel that is the sequential composition of this channel and the specified channel.

    Returns a new channel that is the sequential composition of this channel and the specified channel. The returned channel terminates with the terminal value of the other channel.

    This is a symbol operator for ZChannel#zipRight.

  4. final def <*[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone]

    Permalink

    Returns a new channel that is the sequential composition of this channel and the specified channel.

    Returns a new channel that is the sequential composition of this channel and the specified channel. The returned channel terminates with the terminal value of this channel.

    This is a symbol operator for ZChannel#zipLeft.

  5. final def <*>[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit zippable: Zippable[OutDone, OutDone2], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, Out]

    Permalink

    Returns a new channel that is the sequential composition of this channel and the specified channel.

    Returns a new channel that is the sequential composition of this channel and the specified channel. The returned channel terminates with a tuple of the terminal values of both channels.

    This is a symbol operator for ZChannel#zip.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def >>>[Env1 <: Env, OutErr2, OutElem2, OutDone2](that: ⇒ ZChannel[Env1, OutErr, OutElem, OutDone, OutErr2, OutElem2, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr2, OutElem2, OutDone2]

    Permalink

    Returns a new channel that pipes the output of this channel into the specified channel.

    Returns a new channel that pipes the output of this channel into the specified channel. The returned channel has the input type of this channel, and the output type of the specified channel, terminating with the value of the specified channel.

    This is a symbolic operator for ZChannel#pipeTo.

  8. final def as[OutDone2](z2: ⇒ OutDone2)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2]

    Permalink

    Returns a new channel that is the same as this one, except the terminal value of the channel is the specified constant value.

    Returns a new channel that is the same as this one, except the terminal value of the channel is the specified constant value.

    This method produces the same result as mapping this channel to the specified constant value.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. final def catchAll[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr2, OutElem1 >: OutElem, OutDone1 >: OutDone](f: (OutErr) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1]

    Permalink

    Returns a new channel that is the same as this one, except if this channel errors for any typed error, then the returned channel will switch over to using the fallback channel returned by the specified error handler.

  11. final def catchAllCause[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr2, OutElem1 >: OutElem, OutDone1 >: OutDone](f: (Cause[OutErr]) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1]

    Permalink

    Returns a new channel that is the same as this one, except if this channel errors for any cause at all, then the returned channel will switch over to using the fallback channel returned by the specified error handler.

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def collect[OutElem2](f: PartialFunction[OutElem, OutElem2])(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone]

    Permalink

    Returns a new channel, which is the same as this one, except its outputs are filtered and transformed by the specified partial function.

  14. final def concatMap[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2](f: (OutElem) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]

    Permalink

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response.

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response. These new channels are sequentially concatenated together, and all their outputs appear as outputs of the newly returned channel.

  15. final def concatMapWith[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2, OutDone2, OutDone3](f: (OutElem) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone2])(g: (OutDone2, OutDone2) ⇒ OutDone2, h: (OutDone2, OutDone) ⇒ OutDone3)(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone3]

    Permalink

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response.

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response. These new channels are sequentially concatenated together, and all their outputs appear as outputs of the newly returned channel. The provided merging function is used to merge the terminal values of all channels into the single terminal value of the returned channel.

  16. final def concatMapWithCustom[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2, OutDone2, OutDone3](f: (OutElem) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone2])(g: (OutDone2, OutDone2) ⇒ OutDone2, h: (OutDone2, OutDone) ⇒ OutDone3, onPull: (UpstreamPullRequest[OutElem]) ⇒ UpstreamPullStrategy[OutElem2], onEmit: (OutElem2) ⇒ ChildExecutorDecision)(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone3]

    Permalink

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response.

    Returns a new channel whose outputs are fed to the specified factory function, which creates new channels in response. These new channels are sequentially concatenated together, and all their outputs appear as outputs of the newly returned channel. The provided merging function is used to merge the terminal values of all channels into the single terminal value of the returned channel.

  17. final def concatOut[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2](implicit ev: <:<[OutElem, ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]

    Permalink

    Returns a new channel, which is the concatenation of all the channels that are written out by this channel.

    Returns a new channel, which is the concatenation of all the channels that are written out by this channel. This method may only be called on channels that output other channels.

  18. def contramap[InDone0](f: (InDone0) ⇒ InDone)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone0, OutErr, OutElem, OutDone]

    Permalink
  19. def contramapIn[InElem0](f: (InElem0) ⇒ InElem)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem0, InDone, OutErr, OutElem, OutDone]

    Permalink
  20. def contramapInZIO[InElem0, Env1 <: Env](f: (InElem0) ⇒ ZIO[Env1, InErr, InElem])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem0, InDone, OutErr, OutElem, OutDone]

    Permalink
  21. def contramapZIO[InDone0, Env1 <: Env](f: (InDone0) ⇒ ZIO[Env1, InErr, InDone])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone0, OutErr, OutElem, OutDone]

    Permalink
  22. def doneCollect(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, Nothing, (Chunk[OutElem], OutDone)]

    Permalink

    Returns a new channel, which is the same as this one, except that all the outputs are collected and bundled into a tuple together with the terminal value of this channel.

    Returns a new channel, which is the same as this one, except that all the outputs are collected and bundled into a tuple together with the terminal value of this channel.

    As the channel returned from this channel collects all of this channel's output into an in- memory chunk, it is not safe to call this method on channels that output a large or unbounded number of values.

  23. def drain(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, Nothing, OutDone]

    Permalink

    Returns a new channel which reads all the elements from upstream's output channel and ignores them, then terminates with the upstream result value.

  24. def embedInput[InErr2, InElem2, InDone2](input: AsyncInputProducer[InErr2, InElem2, InDone2])(implicit noInputErrors: <:<[Any, InErr], noInputElements: <:<[Any, InElem], noInputDone: <:<[Any, InDone], trace: ZTraceElement): ZChannel[Env, InErr2, InElem2, InDone2, OutErr, OutElem, OutDone]

    Permalink
  25. final def emitCollect(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, (Chunk[OutElem], OutDone), Unit]

    Permalink

    Returns a new channel that collects the output and terminal value of this channel, which it then writes as output of the returned channel.

  26. final def ensuring[Env1 <: Env](finalizer: URIO[Env1, Any])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  27. final def ensuringWith[Env1 <: Env](finalizer: (Exit[OutErr, OutDone]) ⇒ URIO[Env1, Any])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Returns a new channel with an attached finalizer.

    Returns a new channel with an attached finalizer. The finalizer is guaranteed to be executed so long as the channel begins execution (and regardless of whether or not it completes).

  28. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. final def flatMap[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](f: (OutDone) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]

    Permalink

    Returns a new channel, which sequentially combines this channel, together with the provided factory function, which creates a second channel based on the terminal value of this channel.

    Returns a new channel, which sequentially combines this channel, together with the provided factory function, which creates a second channel based on the terminal value of this channel. The result is a channel that will first perform the functions of this channel, before performing the functions of the created channel (including yielding its terminal value).

  32. final def flatten[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](implicit ev: <:<[OutDone, ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]

    Permalink

    Returns a new channel, which flattens the terminal value of this channel.

    Returns a new channel, which flattens the terminal value of this channel. This function may only be called if the terminal value of this channel is another channel of compatible types.

  33. final def foldCauseChannel[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1, OutElem1 >: OutElem, OutDone1](onErr: (Cause[OutErr]) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1], onSucc: (OutDone) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1]

    Permalink

  34. final def foldChannel[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1, OutElem1 >: OutElem, OutDone1](onErr: (OutErr) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1], onSucc: (OutDone) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1]

    Permalink

  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def interruptWhen[OutErr1 >: OutErr, OutDone1 >: OutDone](promise: Promise[OutErr1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr1, OutElem, OutDone1]

    Permalink

    Returns a new channel, which is the same as this one, except it will be interrupted when the specified promise is completed.

    Returns a new channel, which is the same as this one, except it will be interrupted when the specified promise is completed. If the promise is completed before the underlying channel is done, then the returned channel will yield the value of the promise. Otherwise, if the underlying channel finishes first, then the returned channel will yield the value of the underlying channel.

  38. final def interruptWhen[Env1 <: Env, OutErr1 >: OutErr, OutDone1 >: OutDone](io: ZIO[Env1, OutErr1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem, OutDone1]

    Permalink

    Returns a new channel, which is the same as this one, except it will be interrupted when the specified effect completes.

    Returns a new channel, which is the same as this one, except it will be interrupted when the specified effect completes. If the effect completes successfully before the underlying channel is done, then the returned channel will yield the success value of the effect as its terminal value. On the other hand, if the underlying channel finishes first, then the returned channel will yield the success value of the underlying channel as its terminal value.

  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. final def map[OutDone2](f: (OutDone) ⇒ OutDone2)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2]

    Permalink

    Returns a new channel, which is the same as this one, except the terminal value of the returned channel is created by applying the specified function to the terminal value of this channel.

  41. final def mapError[OutErr2](f: (OutErr) ⇒ OutErr2)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr2, OutElem, OutDone]

    Permalink

    Returns a new channel, which is the same as this one, except the failure value of the returned channel is created by applying the specified function to the failure value of this channel.

  42. final def mapErrorCause[OutErr2](f: (Cause[OutErr]) ⇒ Cause[OutErr2])(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr2, OutElem, OutDone]

    Permalink

    A more powerful version of mapError which also surfaces the Cause of the channel failure

  43. def mapOut[OutElem2](f: (OutElem) ⇒ OutElem2)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone]

    Permalink
  44. def mapOutZIO[Env1 <: Env, OutErr1 >: OutErr, OutElem2](f: (OutElem) ⇒ ZIO[Env1, OutErr1, OutElem2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem2, OutDone]

    Permalink
  45. def mapOutZIOPar[Env1 <: Env, OutErr1 >: OutErr, OutElem2](n: Int)(f: (OutElem) ⇒ ZIO[Env1, OutErr1, OutElem2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem2, OutDone]

    Permalink
  46. final def mapZIO[Env1 <: Env, OutErr1 >: OutErr, OutDone2](f: (OutDone) ⇒ ZIO[Env1, OutErr1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem, OutDone2]

    Permalink

    Returns a new channel, which is the same as this one, except the terminal value of the returned channel is created by applying the specified effectful function to the terminal value of this channel.

  47. def mergeMap[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2](n: ⇒ Int, bufferSize: ⇒ Int = 16, mergeStrategy: ⇒ MergeStrategy = ZChannel.MergeStrategy.BackPressure)(f: (OutElem) ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]

    Permalink
  48. def mergeOut[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2](n: ⇒ Int)(implicit ev: <:<[OutElem, ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, Any]

    Permalink
  49. def mergeOutWith[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem2, OutDone1 >: OutDone](n: ⇒ Int)(f: (OutDone1, OutDone1) ⇒ OutDone1)(implicit ev: <:<[OutElem, ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone1]], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem2, OutDone1]

    Permalink
  50. final def mergeWith[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr2, OutErr3, OutElem1 >: OutElem, OutDone2, OutDone3](that: ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone2])(leftDone: (Exit[OutErr, OutDone]) ⇒ MergeDecision[Env1, OutErr2, OutDone2, OutErr3, OutDone3], rightDone: (Exit[OutErr2, OutDone2]) ⇒ MergeDecision[Env1, OutErr, OutDone, OutErr3, OutDone3])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr3, OutElem1, OutDone3]

    Permalink

    Returns a new channel, which is the merge of this channel and the specified channel, where the behavior of the returned channel on left or right early termination is decided by the specified leftDone and rightDone merge decisions.

  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def never(implicit trace: ZTraceElement): ZChannel[Any, Any, Any, Any, Nothing, Nothing, Nothing]

    Permalink
  53. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. def orDie(implicit ev: <:<[OutErr, Throwable], trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, Nothing, OutElem, OutDone]

    Permalink
  56. def orDieWith(f: (OutErr) ⇒ Throwable)(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, Nothing, OutElem, OutDone]

    Permalink
  57. final def orElse[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr2, OutElem1 >: OutElem, OutDone1 >: OutDone](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr2, OutElem1, OutDone1]

    Permalink

    Returns a new channel that will perform the operations of this one, until failure, and then it will switch over to the operations of the specified fallback channel.

  58. def pipeTo[Env1 <: Env, OutErr2, OutElem2, OutDone2](that: ⇒ ZChannel[Env1, OutErr, OutElem, OutDone, OutErr2, OutElem2, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr2, OutElem2, OutDone2]

    Permalink
  59. def pipeToOrFail[Env1 <: Env, OutErr1 >: OutErr, OutElem2, OutDone2](that: ⇒ ZChannel[Env1, Nothing, OutElem, OutDone, OutErr1, OutElem2, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem2, OutDone2]

    Permalink
  60. def provideCustomLayer[OutErr1 >: OutErr, Env1](layer: ⇒ ZLayer[ZEnv, OutErr1, Env1])(implicit ev: <:<[ZEnv with Env1, Env], tagged: zio.EnvironmentTag[Env1], trace: ZTraceElement): ZChannel[ZEnv, InErr, InElem, InDone, OutErr1, OutElem, OutDone]

    Permalink

    Provides the part of the environment that is not part of the ZEnv, leaving a channel that only depends on the ZEnv.

  61. final def provideEnvironment(env: ⇒ ZEnvironment[Env])(implicit ev: NeedsEnv[Env], trace: ZTraceElement): ZChannel[Any, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Provides the channel with its required environment, which eliminates its dependency on Env.

  62. final def provideLayer[OutErr1 >: OutErr, Env0](layer: ⇒ ZLayer[Env0, OutErr1, Env])(implicit trace: ZTraceElement): ZChannel[Env0, InErr, InElem, InDone, OutErr1, OutElem, OutDone]

    Permalink

    Provides a layer to the channel, which translates it to another level.

  63. final def provideService[Service <: Env](service: ⇒ Service)(implicit ev1: NeedsEnv[Env], tag: Tag[Service], trace: ZTraceElement): ZChannel[Any, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Provides the channel with the single service it requires.

    Provides the channel with the single service it requires. If the channel requires multiple services use provideEnvironment instead.

  64. final def provideSomeEnvironment[Env0](f: (ZEnvironment[Env0]) ⇒ ZEnvironment[Env])(implicit ev: NeedsEnv[Env], trace: ZTraceElement): ZChannel[Env0, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Transforms the environment being provided to the channel with the specified function.

  65. final def provideSomeLayer[Env0]: ProvideSomeLayer[Env0, Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Splits the environment into two parts, providing one part using the specified layer and leaving the remainder Env0.

  66. def repeated(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Nothing]

    Permalink
  67. def run(implicit ev1: <:<[Any, InElem], ev2: <:<[OutElem, Nothing], trace: ZTraceElement): ZIO[Env, OutErr, OutDone]

    Permalink
  68. def runCollect(implicit ev1: <:<[Any, InElem], trace: ZTraceElement): ZIO[Env, OutErr, (Chunk[OutElem], OutDone)]

    Permalink
  69. def runDrain(implicit ev1: <:<[Any, InElem], trace: ZTraceElement): ZIO[Env, OutErr, OutDone]

    Permalink
  70. def runManaged(implicit ev1: <:<[Any, InElem], ev2: <:<[OutElem, Nothing], trace: ZTraceElement): ZManaged[Env, OutErr, OutDone]

    Permalink
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. final def toPipeline[In, Out](implicit In: <:<[Chunk[In], InElem], Out: <:<[OutElem, Chunk[Out]], InDone: <:<[Any, InDone], trace: ZTraceElement): ZPipeline[Env, OutErr, In, Out]

    Permalink
  73. def toPull(implicit trace: ZTraceElement): ZManaged[Env, Nothing, ZIO[Env, OutErr, Either[OutDone, OutElem]]]

    Permalink
  74. final def toSink[In, Out](implicit In: <:<[Chunk[In], InElem], Out: <:<[OutElem, Chunk[Out]], InDone: <:<[Any, InDone], trace: ZTraceElement): ZSink[Env, OutErr, In, Out, OutDone]

    Permalink
  75. final def toStream[Out](implicit Out: <:<[OutElem, Chunk[Out]], InErr: <:<[Any, InErr], InElem: <:<[Any, InElem], InDone: <:<[Any, InDone], trace: ZTraceElement): ZStream[Env, OutErr, Out]

    Permalink
  76. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  77. def unit(implicit trace: ZTraceElement): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Unit]

    Permalink
  78. final def updateService[Service]: UpdateService[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone, Service]

    Permalink

    Updates a service in the environment of this channel.

  79. final def updateServiceAt[Service]: UpdateServiceAt[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone, Service]

    Permalink

    Updates a service at the specified key in the environment of this channel.

  80. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. def zip[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit zippable: Zippable[OutDone, OutDone2], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, Out]

    Permalink
  84. def zipLeft[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone]

    Permalink
  85. def zipPar[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit zippable: Zippable[OutDone, OutDone2], trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, Out]

    Permalink
  86. def zipParLeft[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone]

    Permalink
  87. def zipParRight[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]

    Permalink
  88. def zipRight[Env1 <: Env, InErr1 <: InErr, InElem1 <: InElem, InDone1 <: InDone, OutErr1 >: OutErr, OutElem1 >: OutElem, OutDone2](that: ⇒ ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2])(implicit trace: ZTraceElement): ZChannel[Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped