Channel

ox.channels.Channel
See theChannel companion class
object Channel

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Channel.type

Members list

Value members

Concrete methods

def buffered[T](capacity: Int): Channel[T]

Creates a buffered channel with the given capacity.

Creates a buffered channel with the given capacity.

Attributes

Creates a buffered channel with the default capacity (16).

Creates a buffered channel with the default capacity (16).

Attributes

def rendezvous[T]: Channel[T]

Creates a rendezvous channel (without a buffer, senders & receivers must meet to exchange values).

Creates a rendezvous channel (without a buffer, senders & receivers must meet to exchange values).

Attributes

def unlimited[T]: Channel[T]

Creates an unlimited channel (which can buffer an arbitrary number of values).

Creates an unlimited channel (which can buffer an arbitrary number of values).

Attributes

def withCapacity[T](capacity: Int): Channel[T]

Creates a channel with the given capacity; -1 creates an unlimited channel, 0 creates a rendezvous, positive values create a buffered channel.

Creates a channel with the given capacity; -1 creates an unlimited channel, 0 creates a rendezvous, positive values create a buffered channel.

Attributes