Prepend the messages of a given segment in front of this input.
Prepend a message in front of this input.
Builds a new input by applying a partial function to all messages of this input on which the function is defined.
Builds a new input by applying a partial function to all messages of this input on which the function is defined.
the message type of the returned collection.
the partial function which filters and maps the input.
a new input resulting from applying the partial function
pf
to each message on which it is defined.
The order of the messages is preserved.
Builds a new input that compresses the content of each segment into a single value.
Forward asynchronously the content of this input to an first-class output channel.
Forward asynchronously the content of this input to an first-class output channel. The output will be closed with the same signal as the input. The output and input are released from this process and the method returns immediately.
the signal indicating which channel was closed first
Forward asynchronously the content of this input to an output.
Forward asynchronously the content of this input to an output. The output will be closed with the same signal as the input. The output and input are released from this process and the method returns immediately.
the output to connect to this input
the signal indicating which channel was closed first
Builds a new debugging input that prints every message received.
Skips longest sequence of elements of this input which satisfy given
predicate p
, and returns an input of the remaining elements.
Selects all messages of this input which satisfy a predicate.
Builds a new input by applying a function to all messages of this input and concatenating the results.
Builds a new input by applying a function to all messages of this input and concatenating the results.
the message type of the returned input.
the function to apply to each message.
a new input resulting from applying the given collection-valued function
f
to each message of this input and concatenating the results.
Converts this input stream of traversable collections into an input stream in which all message collections are concatenated.
Converts this input stream of traversable collections into an input stream in which all message collections are concatenated.
the type of the messages of each traversable collection.
an implicit message definition for the message type of the
Traversable
.
an implicit conversion which asserts that the message type of this
input is a Traversable
.
a new input resulting from concatenating all the Traversable
collections.
Fold left
Fold left
Returns an input which groups messages produced by this input into fixed size blocks.
Interleave the messages produced asynchronously on this channel with the messages produced on an other channel.
Interleave the messages produced asynchronously on this channel with the messages
produced on an other channel.
This builds a new input channel that produces one message of type Either[A, B] for every
message produce on this or the other channel, where A
is the type of messages produced
on this channel and B
is the type of messages
produced on the other channel. By default, the resulting channel is closed when both
input channels are closed.
the other input channel
a new input channel that produces one message of type Either[A, B] for every message produce on this or the other channel
Builds a new input by applying a function to all messages of this input.
Merge the streams of two channels.
Merge the streams of two channels.
This builds a new input channel that produces messages from this
channel and the other channel.
the other input channel
a new input channel that produces messages coming on both input channels
Produces an input resulting from applying a repeatedly a parser combinator to this input stream.
Poison this input with EOS signal
Poison this input with EOS signal
Poison this input
Read a single value using a parser or raise the signal if the input is closed
Read a single value using a parser or raise the signal if the input is closed
the type of the pareser element
the parser used to parse a single element.
the next element of this input.
Release the first-class input channel from this process.
Release the first-class input channel from this process.
Produces a collection containing cummulative results of applying the operator going first to last message.
Produces a collection containing cummulative results of applying the operator going first to last message.
the type of the messages in the resulting input
the initial value
the binary operator applied to the intermediate result and the message
input with intermediate results
Returns some signal if the input is closed.
Returns some signal if the input is closed.
Some(signal)
if the input contain no more elements, None
otherwise.
Produces an input containing cummulative results of applying the operator going first to last message.
Create an input that produces longest sequence of this input that satisfy
predicate p
.
Create an input that produces longest sequence of this input that satisfy
predicate p
. The current input cannot be manipulated until the last value
of the new input has been consumed.
the predicate to satisfy
an input producing only of the first messages that satisfy the predicate.
Create an input that produces first n messages of this input.
Create an input that produces first n messages of this input. The current input cannot be manipulated until the last value of the new input has been consumed.
an input producing only of the first n
messages of this input,
or less than n
messages if the input produces less messages.
Test the input stream (see stream.
[use case] Prepend the messages of a given segment in front of this input.
Prepend the messages of a given segment in front of this input.
The segment to prepend.
an input which produces that segment first and then continues with the remaining of the stream.
[use case] Prepend a message in front of this input.
Prepend a message in front of this input.
the message to prepend.
an input which produces x
as first message and
which continues with the remaining of the stream.
[use case] Prepend a message on this input.
Prepend a message on this input.
the message to prepend.
an input which produces x
as first message and
which continues with the remaining of the stream.
Prepend a message on this input.
Prepend a message on this input.
the message to prepend.
an input which produces x
as first message and
which continues with the remaining of the stream.
Create a selector that reads a value on either input unless one of them is closed.
Create a selector that reads a value on either input unless one of them is closed. If the one of them is closed an SigInput will be raised in the enclosing scope.
Create a selector that reads a value on either input unless the left one is closed.
Create a selector that reads a value on either input unless the left one is closed. If the left input is closed an SigInput will be raised in the enclosing scope.
Create a selector that reads a value on either input unless the right one is closed.
Create a selector that reads a value on either input unless the right one is closed. If the right input is closed an SigInput will be raised in the enclosing scope.
Create a selector that reads a value on either input unless they are both closed.
Create a selector that reads a value on either input unless they are both closed. If both input are closed an SigInput will be raised in the enclosing scope.
[use case] Builds a new input by applying a partial function to all messages of this input on which the function is defined.
Builds a new input by applying a partial function to all messages of this input on which the function is defined.
the message type of the returned collection.
the partial function which filters and maps the input.
a new input resulting from applying the partial function
pf
to each message on which it is defined.
The order of the messages is preserved.
[use case] Builds a new debugging input that prints every message received.
Builds a new debugging input that prints every message received.
the label to put in front of each debug line.
A function converting messages to a string.
The same input excepted each message will be printed.
[use case] Builds a new input by applying a function to all messages of this input and concatenating the results.
Builds a new input by applying a function to all messages of this input and concatenating the results.
the message type of the returned input.
the function to apply to each message.
a new input resulting from applying the given collection-valued function
f
to each message of this input and concatenating the results.
[use case] Converts this input stream of traversable collections into an input stream in which all message collections are concatenated.
Converts this input stream of traversable collections into an input stream in which all message collections are concatenated.
the type of the messages of each traversable collection.
a new input resulting from concatenating all the Traversable
collections.
Flush the content of this input to an output.
Flush the content of this input to an output. It returns when this input is empty but does not close the output.
the output on which to forward this content
the signal that closes this input
[use case] Applies a function f
to all elements of this input.
Applies a function f
to all elements of this input.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Applies a function f
to all elements of this input.
Applies a function f
to all elements of this input.
the type parameter describing the result of function f
.
This result will always be ignored. Typically U
is Unit
,
but this is not necessary.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Tests whether this input is closed and returns the signal.
Tests whether this input is closed and returns the signal.
Some(signal)
if the input contain no more elements, None
otherwise.
Tests whether this input is empty (or closed).
Tests whether this input is empty (or closed).
true
if the input contain no more elements, false
otherwise.
[use case] Builds a new input by applying a function to all messages of this input.
Builds a new input by applying a function to all messages of this input.
the message type of the returned input.
the function to apply to each message.
a new input resulting from applying the given function
f
to each message of this input.
Read a single value or raise the signal if the input is closed
Read a single value or raise the signal if the input is closed
the next element of this input.
Close/poison this input with EOS signal
Close/poison this input with EOS signal
(Since version 3.0) Use poison
instead
Close/poison this input
Close/poison this input
the poisoning signal
(Since version 3.0) Use poison
instead
Forward the content of this input to an output.
Forward the content of this input to an output. It returns when this input is empty but does not close the output.
the output on which to forward this content
the signal that closes this input
A process-level input channel.
the type of the input's messages