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(implicit trace: Trace): UIO[Unit]
Await shutdown of the channel.
- abstract def receive(implicit trace: Trace): Task[Out]
Read a message from the channel, suspending until the next message is available.
- abstract def receiveAll[Env, Err](f: (Out) => ZIO[Env, Err, Any])(implicit trace: Trace): ZIO[Env, Err, Unit]
Reads all messages from the channel, handling them with the specified function.
- abstract def send(in: In)(implicit trace: Trace): Task[Unit]
Send a message to the channel.
- abstract def sendAll(in: Iterable[In])(implicit trace: Trace): Task[Unit]
Send all messages to the channel.
- abstract def shutdown(implicit trace: Trace): 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() @IntrinsicCandidate()
- 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() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[Out2](f: (Out) => Out2)(implicit trace: Trace): 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() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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])