Sink

ox.channels.Sink
trait Sink[-T]

Attributes

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

Members list

Concise view

Value members

Abstract methods

def done(): ClosedOr[Unit]

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[Exception]): ClosedOr[Unit]
def send(t: T): ClosedOr[Unit]

Concrete methods

def error(): ClosedOr[Unit]
def error(reason: Exception): ClosedOr[Unit]