trait Channel[-In, +Out] extends AnyRef
A Channel is an asynchronous communication channel that supports receiving
messages of type In and sending messages of type Out.
- Self Type
- Channel[In, Out]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Channel
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def awaitShutdown: UIO[Unit]
Await shutdown of the channel.
- abstract def receive: Task[Out]
Read a message from the channel, suspending until the next message is available.
- abstract def send(in: In): Task[Unit]
Send a message to the channel.
- abstract def shutdown: UIO[Unit]
Shut down the channel.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def contramap[In2](f: (In2) => In): Channel[In2, Out]
Constructs a new channel that automatically transforms messages sent to this channel using the specified function.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[Out2](f: (Out) => Out2): Channel[In, Out2]
Constructs a new channel that automatically transforms messages received from this channel using the specified function.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def receiveAll[Env](f: (Out) => ZIO[Env, Throwable, Any]): ZIO[Env, Throwable, Nothing]
Reads all messages from the channel, handling them with the specified function.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])