Object/Trait

zio.stream

ZChannel

Related Docs: trait ZChannel | package stream

Permalink

object ZChannel

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

Type Members

  1. final class EnvironmentWithChannelPartiallyApplied[Env] extends AnyVal

    Permalink
  2. final class EnvironmentWithPartiallyApplied[Env] extends AnyVal

    Permalink
  3. final class EnvironmentWithZIOPartiallyApplied[Env] extends AnyVal

    Permalink
  4. sealed abstract class MergeDecision[-R, -E0, -Z0, +E, +Z] extends AnyRef

    Permalink
  5. sealed trait MergeStrategy extends AnyRef

    Permalink
  6. final class ProvideSomeLayer[Env0, -Env, -InErr, -InElem, -InDone, +OutErr, +OutElem, +OutDone] extends AnyVal

    Permalink
  7. final class ScopedPartiallyApplied[R] extends AnyVal

    Permalink
  8. final class ServiceAtPartiallyApplied[Service] extends AnyVal

    Permalink
  9. final class ServiceWithChannelPartiallyApplied[Service] extends AnyVal

    Permalink
  10. final class ServiceWithPartiallyApplied[Service] extends AnyVal

    Permalink
  11. final class ServiceWithZIOPartiallyApplied[Service] extends AnyVal

    Permalink
  12. final class UnwrapScopedPartiallyApplied[Env] extends AnyVal

    Permalink
  13. final class UpdateService[-Env, -InErr, -InElem, -InDone, +OutErr, +OutElem, +OutDone, Service] extends AnyVal

    Permalink
  14. final class UpdateServiceAt[-Env, -InErr, -InElem, -InDone, +OutErr, +OutElem, +OutDone, Service] extends AnyVal

    Permalink

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 ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object MergeDecision

    Permalink
  5. object MergeStrategy

    Permalink
  6. def acquireReleaseExitWith[Env, InErr, InElem, InDone, OutErr, Acquired, OutElem2, OutDone](acquire: ⇒ ZIO[Env, OutErr, Acquired])(release: (Acquired, Exit[OutErr, OutDone]) ⇒ URIO[Env, Any])(use: (Acquired) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone]

    Permalink
  7. def acquireReleaseOutExitWith[Env, OutErr, Acquired](acquire: ⇒ ZIO[Env, OutErr, Acquired])(release: (Acquired, Exit[Any, Any]) ⇒ URIO[Env, Any])(implicit trace: Trace): ZChannel[Env, Any, Any, Any, OutErr, Acquired, Unit]

    Permalink
  8. def acquireReleaseOutWith[Env, OutErr, Acquired](acquire: ⇒ ZIO[Env, OutErr, Acquired])(release: (Acquired) ⇒ URIO[Env, Any])(implicit trace: Trace): ZChannel[Env, Any, Any, Any, OutErr, Acquired, Unit]

    Permalink
  9. def acquireReleaseWith[Env, InErr, InElem, InDone, OutErr, Acquired, OutElem2, OutDone](acquire: ⇒ ZIO[Env, OutErr, Acquired])(release: (Acquired) ⇒ URIO[Env, Any])(use: (Acquired) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone]

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def buffer[InErr, InElem, InDone](empty: ⇒ InElem, isEmpty: (InElem) ⇒ Boolean, ref: ⇒ Ref[InElem])(implicit trace: Trace): ZChannel[Any, InErr, InElem, InDone, InErr, InElem, InDone]

    Permalink

    Creates a channel backed by a buffer.

    Creates a channel backed by a buffer. When the buffer is empty, the channel will simply passthrough its input as output. However, when the buffer is non-empty, the value inside the buffer will be passed along as output.

  12. def bufferChunk[InErr, InElem, InDone](ref: ⇒ Ref[Chunk[InElem]])(implicit trace: Trace): ZChannel[Any, InErr, Chunk[InElem], InDone, InErr, Chunk[InElem], InDone]

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def concatAll[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](channels: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any], Any])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any]

    Permalink
  15. def concatAllWith[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone, OutDone2, OutDone3](channels: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], OutDone2])(f: (OutDone, OutDone) ⇒ OutDone, g: (OutDone, OutDone2) ⇒ OutDone3)(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone3]

    Permalink
  16. def environment[Env](implicit trace: Trace): ZChannel[Env, Any, Any, Any, Nothing, Nothing, ZEnvironment[Env]]

    Permalink

    Accesses the whole environment of the channel.

  17. def environmentWith[Env]: EnvironmentWithPartiallyApplied[Env]

    Permalink

    Accesses the environment of the channel.

  18. def environmentWithChannel[Env]: EnvironmentWithChannelPartiallyApplied[Env]

    Permalink

    Accesses the environment of the channel in the context of a channel.

  19. def environmentWithZIO[Env]: EnvironmentWithZIOPartiallyApplied[Env]

    Permalink

    Accesses the environment of the channel in the context of an effect.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def fail[E](e: ⇒ E)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, E, Nothing, Nothing]

    Permalink
  23. def failCause[E](cause: ⇒ Cause[E])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, E, Nothing, Nothing]

    Permalink
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def fromEither[E, A](either: ⇒ Either[E, A])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, E, Nothing, A]

    Permalink
  26. def fromHub[Err, Done, Elem](hub: ⇒ Hub[Either[Exit[Err, Done], Elem]])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Err, Elem, Done]

    Permalink
  27. def fromHubScoped[Err, Done, Elem](hub: ⇒ Hub[Either[Exit[Err, Done], Elem]])(implicit trace: Trace): ZIO[Scope, Nothing, ZChannel[Any, Any, Any, Any, Err, Elem, Done]]

    Permalink
  28. def fromOption[A](option: ⇒ Option[A])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, None.type, Nothing, A]

    Permalink
  29. def fromQueue[Err, Done, Elem](queue: ⇒ Dequeue[Either[Exit[Err, Done], Elem]])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Err, Elem, Done]

    Permalink
  30. def fromZIO[R, E, A](zio: ⇒ ZIO[R, E, A])(implicit trace: Trace): ZChannel[R, Any, Any, Any, E, Nothing, A]

    Permalink
  31. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def identity[Err, Elem, Done](implicit trace: Trace): ZChannel[Any, Err, Elem, Done, Err, Elem, Done]

    Permalink
  34. def interruptAs(fiberId: ⇒ FiberId)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Nothing, Nothing]

    Permalink
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. def mergeAll[Env, InErr, InElem, InDone, OutErr, OutElem](channels: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any], Any], n: ⇒ Int, bufferSize: ⇒ Int = 16, mergeStrategy: ⇒ MergeStrategy = MergeStrategy.BackPressure)(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any]

    Permalink
  37. def mergeAllUnbounded[Env, InErr, InElem, InDone, OutErr, OutElem](channels: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any], Any])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, Any]

    Permalink
  38. def mergeAllUnboundedWith[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](channels: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], OutDone])(f: (OutDone, OutDone) ⇒ OutDone)(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  39. def mergeAllWith[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](channels: ZChannel[Env, InErr, InElem, InDone, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], OutDone], n: ⇒ Int, bufferSize: ⇒ Int = 16, mergeStrategy: ⇒ MergeStrategy = MergeStrategy.BackPressure)(f: (OutDone, OutDone) ⇒ OutDone)(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def never(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Nothing, Nothing]

    Permalink

    Returns a channel that never completes

  42. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  44. def provideLayer[Env0, Env, Env1, InErr, InElem, InDone, OutErr, OutElem, OutDone](layer: ZLayer[Env0, OutErr, Env])(channel: ⇒ ZChannel[Env with Env1, InErr, InElem, InDone, OutErr, OutElem, OutDone])(implicit ev: zio.EnvironmentTag[Env], tag: zio.EnvironmentTag[Env1], trace: Trace): ZChannel[Env0 with Env1, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  45. def read[In](implicit trace: Trace): ZChannel[Any, Any, In, Any, None.type, Nothing, In]

    Permalink
  46. def readOrFail[E, In](e: ⇒ E)(implicit trace: Trace): ZChannel[Any, Any, In, Any, E, Nothing, In]

    Permalink
  47. def readWith[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](in: (InElem) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], error: (InErr) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], done: (InDone) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  48. def readWithCause[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](in: (InElem) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], halt: (Cause[InErr]) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone], done: (InDone) ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  49. def scoped[R]: ScopedPartiallyApplied[R]

    Permalink
  50. def service[Service](implicit arg0: Tag[Service], trace: Trace): ZChannel[Service, Any, Any, Any, Nothing, Nothing, Service]

    Permalink

    Accesses the specified service in the environment of the channel.

  51. def serviceAt[Service]: ServiceAtPartiallyApplied[Service]

    Permalink

    Accesses the service corresponding to the specified key in the environment.

  52. def serviceWith[Service]: ServiceWithPartiallyApplied[Service]

    Permalink

    Accesses the specified service in the environment of the channel.

  53. def serviceWithChannel[Service]: ServiceWithChannelPartiallyApplied[Service]

    Permalink

    Accesses the specified service in the environment of the channel in the context of a channel.

  54. def serviceWithZIO[Service]: ServiceWithZIOPartiallyApplied[Service]

    Permalink

    Accesses the specified service in the environment of the channel in the context of an effect.

  55. def succeed[Z](z: ⇒ Z)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Nothing, Z]

    Permalink

    Creates a channel that succeeds immediately with the given value

  56. def succeedNow[Z](result: Z)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Nothing, Z]

    Permalink
  57. def succeedWith[R, Z](f: (ZEnvironment[R]) ⇒ Z)(implicit trace: Trace): ZChannel[R, Any, Any, Any, Nothing, Nothing, Z]

    Permalink
  58. def suspend[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](channel: ⇒ ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink

    Returns a lazily constructed channel.

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

    Permalink
    Definition Classes
    AnyRef
  60. def toHub[Err, Done, Elem](hub: ⇒ Hub[Either[Exit[Err, Done], Elem]])(implicit trace: Trace): ZChannel[Any, Err, Elem, Done, Nothing, Nothing, Any]

    Permalink
  61. def toQueue[Err, Done, Elem](queue: ⇒ Enqueue[Either[Exit[Err, Done], Elem]])(implicit trace: Trace): ZChannel[Any, Err, Elem, Done, Nothing, Nothing, Any]

    Permalink
  62. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  63. val unit: ZChannel[Any, Any, Any, Any, Nothing, Nothing, Unit]

    Permalink

    Channel that succeeds with the unit value

  64. def unwrap[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone](channel: ⇒ ZIO[Env, OutErr, ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]])(implicit trace: Trace): ZChannel[Env, InErr, InElem, InDone, OutErr, OutElem, OutDone]

    Permalink
  65. def unwrapScoped[Env]: UnwrapScopedPartiallyApplied[Env]

    Permalink
  66. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. def write[Out](out: Out)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Out, Unit]

    Permalink
  70. def writeAll[Out](outs: Out*)(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Out, Unit]

    Permalink
  71. def writeChunk[Out](outs: Chunk[Out])(implicit trace: Trace): ZChannel[Any, Any, Any, Any, Nothing, Out, Unit]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped