DirectChannel
A channel with capacity 0, requiring that senders & receivers meet to exchange a value.
Attributes
- Graph
-
- Supertypes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Sendtrait SelectClause[Unit]class Objecttrait Matchableclass AnyShow all
Inherited classlikes
Attributes
- Inherited from:
- Source
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SelectClause[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- Source
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SelectResult[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- Sink
- Supertypes
- Known subtypes
-
class BufferedSendclass DirectSend
Attributes
- Inherited from:
- Sink
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SelectResult[Unit]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
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
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- SourceOps
Receives all elements from the channel. Blocks until the channel is done.
Receives all elements from the channel. Blocks until the channel is done.
Attributes
- Throws
-
ChannelClosedException
when there is an upstream error.
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- Sink
Attributes
- Inherited from:
- Sink
Attributes
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- SourceOps
Invokes the given function for each received element. Blocks until the channel is done.
Invokes the given function for each received element. Blocks until the channel is done.
Attributes
- Throws
-
ChannelClosedException
when there is an upstream error.
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- Stateful
Attributes
- Inherited from:
- Stateful
Attributes
- Inherited from:
- SourceOps
Applies the given mapping function f
to each element received from this source, and sends the results to the returned channel. At most parallelism
invocations of f
are run in parallel.
Applies the given mapping function f
to each element received from this source, and sends the results to the returned channel. At most parallelism
invocations of f
are run in parallel.
The mapped results are sent to the returned channel in the same order, in which inputs are received from this source. In other words, ordering is preserved.
Errors from this channel are propagated to the returned channel. Any exceptions that occur when invoking f
are propagated as errors to the returned channel as well, and result in interrupting any mappings that are in progress.
Must be run within a scope, as child forks are created, which receive from this source, send to the resulting one, and run the mappings.
Value parameters
- f
-
The mapping function.
- parallelism
-
An upper bound on the number of forks that run in parallel. Each fork runs the function
f
on a single element of the source.
Attributes
- Returns
-
A source, onto which results of the mapping function will be sent.
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- SourceOps
Passes each received element from this channel to the given sink. Blocks until the channel is done.
Passes each received element from this channel to the given sink. Blocks until the channel is done.
Attributes
- Throws
-
ChannelClosedException
when there is an upstream error, or when the sink is closed.
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- Source
Attributes
- Inherited from:
- SourceOps
Accumulates all elements received from the channel into a list. Blocks until the channel is done.
Accumulates all elements received from the channel into a list. Blocks until the channel is done.
Attributes
- Throws
-
ChannelClosedException
when there is an upstream error.
- Inherited from:
- SourceOps
Attributes
- Inherited from:
- SourceOps
Inherited fields
Attributes
- Inherited from:
- Source