Channel

ox.channels.Channel
See theChannel companion object
trait Channel[T] extends Source[T], Sink[T]

Attributes

Companion
object
Graph
Supertypes
trait Sink[T]
trait Source[T]
trait SourceOps[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class BufferedChannel[T]
class DirectChannel[T]

Members list

Type members

Inherited classlikes

case class Receive extends SelectClause[T]

Attributes

Inherited from:
Source
Supertypes
trait Serializable
trait Product
trait Equals
trait SelectClause[T]
class Object
trait Matchable
class Any
Show all
case class Received extends SelectResult[T]

Attributes

Inherited from:
Source
Supertypes
trait Serializable
trait Product
trait Equals
trait SelectResult[T]
class Object
trait Matchable
class Any
Show all
sealed trait Send extends SelectClause[Unit]

Attributes

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

Attributes

Inherited from:
Sink
Supertypes
trait Serializable
trait Product
trait Equals
trait SelectResult[Unit]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def receive(): T | ChannelClosed

Attributes

Definition Classes
override def send(v: T): Unit | ChannelClosed

Attributes

Definition Classes

Inherited methods

def collectAsView[U](f: PartialFunction[T, U]): Source[U]

Attributes

Inherited from:
SourceOps
def concat[U >: T](other: Source[U])(using Ox, StageCapacity): Source[U]

Attributes

Inherited from:
SourceOps
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.

Inherited from:
Sink
def drain(): Unit

Attributes

Inherited from:
SourceOps
def error(reason: Option[Exception]): Unit | ChannelClosed

Attributes

Inherited from:
Sink
def error(reason: Exception): Unit | ChannelClosed

Attributes

Inherited from:
Sink
def error(): Unit | ChannelClosed

Attributes

Inherited from:
Sink
def filter(f: T => Boolean)(using Ox, StageCapacity): Source[T]

Attributes

Inherited from:
SourceOps
def filterAsView(f: T => Boolean): Source[T]

Attributes

Inherited from:
SourceOps
def foreach(f: T => Unit): Unit

Attributes

Inherited from:
SourceOps
def map[U](f: T => U)(using Ox, StageCapacity): Source[U]

Attributes

Inherited from:
SourceOps
def mapAsView[U](f: T => U): Source[U]

Attributes

Inherited from:
SourceOps
def merge[U >: T](other: Source[U])(using Ox, StageCapacity): Source[U]

Attributes

Inherited from:
SourceOps
def pipeTo(sink: Sink[T]): Unit

Attributes

Inherited from:
SourceOps
def sendClause(v: T): Send

Attributes

Inherited from:
Sink
def take(n: Int)(using Ox, StageCapacity): Source[T]

Attributes

Inherited from:
SourceOps
def toList: List[T]

Attributes

Inherited from:
SourceOps
def transform[U](f: Iterator[T] => Iterator[U])(using Ox, StageCapacity): Source[U]

Attributes

Inherited from:
SourceOps
def zip[U](other: Source[U])(using Ox, StageCapacity): Source[(T, U)]

Attributes

Inherited from:
SourceOps

Inherited fields

Attributes

Inherited from:
Source