SourceOps
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
Source[T]
Members list
Value members
Concrete methods
Applies the given mapping function f
to each value received from this source, for which the function is defined, and sends the results to the returned channel. If f
is not defined at a value, the value will be skipped.
Applies the given mapping function f
to each value received from this source, for which the function is defined, and sends the results to the returned channel. If f
is not defined at a value, the value will be skipped.
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.
Must be run within a scope, as a child fork is created, which receives from this source and sends the mapped values to the resulting one.
Value parameters
- f
-
The mapping function.
Attributes
- Returns
-
A source, onto which results of the mapping function will be sent.
Applies the given mapping function f
to each value received from this source, and sends the results to the returned channel.
Applies the given mapping function f
to each value received from this source, and sends the results to the returned channel.
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.
Must be run within a scope, as a child fork is created, which receives from this source and sends the mapped values to the resulting one.
Value parameters
- f
-
The mapping function.
Attributes
- Returns
-
A source, onto which results of the mapping function will be sent.
Applies the given consumer function f
to each value received from this source.
Applies the given consumer function f
to each value received from this source.
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.
Must be run within a scope, as a child fork is created, which receives from this source and sends the mapped values to the resulting one.
Useful for side-effects without result values, like logging and debugging.
Value parameters
- f
-
The consumer function.
Attributes
- Returns
-
A source, which the values from the input source are passed to.