Sink

ox.channels.Sink
trait Sink[-T] extends Stateful

Attributes

Graph
Supertypes
trait Stateful
class Object
trait Matchable
class Any
Known subtypes
trait Channel[T]
class BufferedChannel[T]
class DirectChannel[T]

Members list

Type members

Classlikes

sealed trait Send extends SelectClause[Unit]

Attributes

Supertypes
trait SelectClause[Unit]
class Object
trait Matchable
class Any
Known subtypes
class BufferedSend
class DirectSend
case class Sent extends SelectResult[Unit]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SelectResult[Unit]
class Object
trait Matchable
class Any
Show all

Value members

Abstract methods

def done(): Unit | ChannelClosed

Completes the channel with a "done" state.

Completes the channel with a "done" state.

Any elements that have been sent can be received. After that, receivers will learn that the channel is done.

No new elements can be sent to this channel. Sending will end with a ChannelClosedException.Done exception.

Attributes

Note

If a send is ran concurrently with done, it can happen that a receiver first learns that the channel is done, and then it can receive the element that was sent concurrently.

def error(reason: Option[Throwable]): Unit | ChannelClosed
def send(t: T): Unit | ChannelClosed
def sendClause(v: T): Send

Concrete methods

def error(): Unit | ChannelClosed
def error(reason: Throwable): Unit | ChannelClosed

Inherited methods

def isClosed: Boolean

Attributes

Inherited from:
Stateful

Attributes

Inherited from:
Stateful
def isDone: Boolean

Attributes

Inherited from:
Stateful
def isError: Boolean

Attributes

Inherited from:
Stateful
def isErrorDetail: Option[Error]

Attributes

Inherited from:
Stateful