Operator alias for append.
Operator alias for append.
Run this Process, then, if it halts without an error, run p2.
Run this Process, then, if it halts without an error, run p2.
Note that p2 is appended to the fallback argument of any Await
produced by this Process. If this is not desired, use fby.
Catch exceptions produced by this Process, not including normal termination,
and uses f to decide whether to resume a second process.
Catch exceptions produced by this Process, not including normal termination,
and uses f to decide whether to resume a second process.
Alias for this |> process1.buffer(n).
Alias for this |> process1.buffer(n).
Alias for this |> process1.bufferAll.
Alias for this |> process1.bufferAll.
Alias for this |> process1.bufferBy(f).
Alias for this |> process1.bufferBy(f).
Add e as a cause when this Process halts.
Add e as a cause when this Process halts.
This is a noop and returns immediately if e is Process.End.
Alias for this |> process1.chunk(n).
Alias for this |> process1.chunk(n).
Alias for this |> process1.chunkAll.
Alias for this |> process1.chunkAll.
Alias for this |> process1.chunkBy(f).
Alias for this |> process1.chunkBy(f).
Switch to the cleanup case of the next Await issued by this Process.
Switch to the cleanup case of the next Await issued by this Process.
Alias for this |> process1.collect(pf).
Alias for this |> process1.collect(pf).
Switch to the fallback case of _all_ subsequent awaits.
Switch to the fallback case of _all_ subsequent awaits.
Ignores output of this Process.
Ignores output of this Process. A drained Process will never Emit.
Ignores the first n elements output from this Process.
Ignores the first n elements output from this Process.
Ignores elements from the output of this Process until f tests false.
Ignores elements from the output of this Process until f tests false.
Nondeterministic interleave of both streams.
Nondeterministic interleave of both streams. Emits values whenever either is defined.
Map over this Process to produce a stream of F-actions,
then evaluate these actions.
Map over this Process to produce a stream of F-actions,
then evaluate these actions.
Switch to the fallback case of the _next_ Await issued by this Process.
Switch to the fallback case of the _next_ Await issued by this Process.
Run this Process, then, if it self-terminates, run p2.
Run this Process, then, if it self-terminates, run p2.
This differs from append in that p2 is not consulted if this
Process terminates due to the input being exhausted. That is,
we do not modify the fallback arguments to any Await produced
by this Process.
Skips any output elements not matching the predicate.
Skips any output elements not matching the predicate.
Alias for this |> process1.find(f)
Alias for this |> process1.find(f)
Generate a Process dynamically for each output of this Process, and
sequence these processes using append.
Generate a Process dynamically for each output of this Process, and
sequence these processes using append.
Return any elements emitted by this process after switching to the
fallback case of any subsequent Awaits.
Return any elements emitted by this process after switching to the
fallback case of any subsequent Awaits.
Connect this Process to process1.fold(b)(f).
Connect this Process to process1.fold(b)(f).
Connect this Process to process1.fold1(f).
Connect this Process to process1.fold1(f).
Alias for this |> process1.fold1Map(f)(M).
Alias for this |> process1.fold1Map(f)(M).
Alias for this |> process1.fold1Monoid(M)
Alias for this |> process1.fold1Monoid(M)
Alias for this |> process1.foldMap(f)(M).
Alias for this |> process1.foldMap(f)(M).
Alias for this |> process1.foldMonoid(M)
Alias for this |> process1.foldMonoid(M)
Alias for this |> process1.fold1Semigroup(M).
Alias for this |> process1.fold1Semigroup(M).
Map over this Process to produce a stream of F-actions,
then evaluate these actions, returning results in whatever
order they come back.
Map over this Process to produce a stream of F-actions,
then evaluate these actions, returning results in whatever
order they come back. bufSize controls the maximum number
of evaluations that can be queued at any one time.
Catch some of the exceptions generated by this Process, rethrowing any
not handled by the given PartialFunction and stripping out any values
emitted before the error.
Catch some of the exceptions generated by this Process, rethrowing any
not handled by the given PartialFunction and stripping out any values
emitted before the error.
Switch to the cleanup case of _all_ subsequent awaits.
Switch to the cleanup case of _all_ subsequent awaits.
Alternate emitting elements from this and p2, starting with this.
Alternate emitting elements from this and p2, starting with this.
Insert sep between elements emitted by this Process.
Insert sep between elements emitted by this Process.
Halt this process, but give it an opportunity to run any requests it has
in the cleanup argument of its next Await.
Halt this process, but give it an opportunity to run any requests it has
in the cleanup argument of its next Await.
Halt this process, allowing for any cleanup actions, and e as a cause.
Halt this process, allowing for any cleanup actions, and e as a cause.
Skips all elements emitted by this Process except the last.
Skips all elements emitted by this Process except the last.
Transforms the output values of this Process using f.
Transforms the output values of this Process using f.
Nondeterministic interleave of both streams.
Nondeterministic interleave of both streams. Emits values whenever either is defined.
Run p2 after this Process completes normally, or in the event of an error.
Run p2 after this Process completes normally, or in the event of an error.
This behaves almost identically to append, except that p1 append p2 will
not run p2 if p1 halts with an error.
Run p2 after this Process if this Process completes with an an error.
Run p2 after this Process if this Process completes with an an error.
Halts this Process after emitting 1 element.
Halts this Process after emitting 1 element.
Append to the fallback and cleanup arguments of the _next_ Await.
Append to the fallback and cleanup arguments of the _next_ Await.
Like attempt, but accepts a partial function.
Like attempt, but accepts a partial function. Unhandled errors are rethrown.
Feed the output of this Process as input of p2.
Feed the output of this Process as input of p2. The implementation
will fuse the two processes, so this process will only generate
values as they are demanded by p2. If p2 signals termination, this
is killed using kill, giving it the opportunity to clean up.
Alias for this |> process1.reduce(f).
Alias for this |> process1.reduce(f).
Alias for this |> process1.reduceMap(f)(M).
Alias for this |> process1.reduceMap(f)(M).
Alias for this |> process1.reduceMonoid(M).
Alias for this |> process1.reduceMonoid(M).
Alias for this |> process1.reduceSemigroup(M).
Alias for this |> process1.reduceSemigroup(M).
Run this process until it halts, then run it again and again, as long as no errors occur.
Run this process until it halts, then run it again and again, as long as no errors occur.
Run this Process, purely for its effects.
Run this Process, purely for its effects.
Collect the outputs of this Process[F,O] into a monoid B, given a Monad[F] in
which we can catch exceptions.
Collect the outputs of this Process[F,O] into a monoid B, given a Monad[F] in
which we can catch exceptions. This function is not tail recursive and
relies on the Monad[F] to ensure stack safety.
Run this Process solely for its final emitted value, if one exists.
Run this Process solely for its final emitted value, if one exists.
Run this Process solely for its final emitted value, if one exists, using o2 otherwise.
Run this Process solely for its final emitted value, if one exists, using o2 otherwise.
Collect the outputs of this Process[F,O], given a Monad[F] in
which we can catch exceptions.
Collect the outputs of this Process[F,O], given a Monad[F] in
which we can catch exceptions. This function is not tail recursive and
relies on the Monad[F] to ensure stack safety.
Connect this Process to process1.scan(b)(f).
Connect this Process to process1.scan(b)(f).
Connect this Process to process1.scan1(f).
Connect this Process to process1.scan1(f).
Alias for this |> process1.scan1Map(f)(M).
Alias for this |> process1.scan1Map(f)(M).
Connect this Process to process1.scan1Monoid(M).
Connect this Process to process1.scan1Monoid(M).
Alias for this |> process1.scanMap(f)(M).
Alias for this |> process1.scanMap(f)(M).
Connect this Process to process1.scanMonoid(M).
Connect this Process to process1.scanMonoid(M).
Connect this Process to process1.scan1Semigroup(M).
Connect this Process to process1.scan1Semigroup(M).
Delay running this Process until awaken becomes true for the first time.
Delay running this Process until awaken becomes true for the first time.
Alias for this |> process1.split(f)
Alias for this |> process1.split(f)
Alias for this |> process1.splitOn(f)
Alias for this |> process1.splitOn(f)
Halts this Process after emitting n elements.
Halts this Process after emitting n elements.
Halts this Process as soon as the predicate tests false.
Halts this Process as soon as the predicate tests false.
Use a Tee to interleave or combine the outputs of this and
p2.
Use a Tee to interleave or combine the outputs of this and
p2. This can be used for zipping, interleaving, and so forth.
Nothing requires that the Tee read elements from each
Process in lockstep. It could read fifty elements from one
side, then two elements from the other, then combine or
interleave these values in some way, etc.
If at any point the Tee awaits on a side that has halted,
we gracefully kill off the other side, then halt.
Wraps all outputs in Some, then outputs a single None before halting.
Wraps all outputs in Some, then outputs a single None before halting.
Translate the request type from F to G, using the given polymorphic function.
Translate the request type from F to G, using the given polymorphic function.
Remove any leading emitted values from this Process.
Remove any leading emitted values from this Process.
Removes all emitted elements from the front of this Process.
Removes all emitted elements from the front of this Process.
The second argument returned by this method is guaranteed to be
an Await or a Halt--if there are multiple Emits at the
front of this process, the sequences are concatenated together.
If this Process does not begin with an Emit, returns the empty
sequence along with this.
Halts this Process as soon as condition becomes true.
Halts this Process as soon as condition becomes true. Note that condition
is checked before each and every read from this, so condition should return
very quickly or be continuous to avoid holding up the output Process. Use
condition.forwardFill to convert an infrequent discrete Process to a
continuous one for use with this function.
When condition is true, lets through any values in this process, otherwise blocks
until condition becomes true again.
When condition is true, lets through any values in this process, otherwise blocks
until condition becomes true again. Note that the condition is checked before
each and every read from this, so condition should return very quickly or be
continuous to avoid holding up the output Process. Use condition.forwardFill to
convert an infrequent discrete Process to a continuous one for use with this
function.
Alias for this |> process1.window(n)
Alias for this |> process1.window(n)
Like tee, but we allow the Wye to read nondeterministically
from both sides at once, using the supplied Nondeterminism
instance.
Like tee, but we allow the Wye to read nondeterministically
from both sides at once, using the supplied Nondeterminism
instance.
If y is in the state of awaiting Both, this implementation
will continue feeding y until either it halts or _both_ sides
halt.
If y is in the state of awaiting L, and the left
input has halted, we halt. Likewise for the right side.
For as long as y permits it, this implementation will _always_
feed it any leading Emit elements from either side before issuing
new F requests. More sophisticated chunking and fairness
policies do not belong here, but should be built into the Wye
and/or its inputs.
Nondeterministic version of zip.
Nondeterministic version of zip.
Nondeterministic version of zipWith.
Nondeterministic version of zipWith.
Call tee with the zip Tee[O,O2,O3] defined in tee.scala.
Call tee with the zip Tee[O,O2,O3] defined in tee.scala.
Call tee with the zipWith Tee[O,O2,O3] defined in tee.scala.
Call tee with the zipWith Tee[O,O2,O3] defined in tee.scala.
Operator alias for pipe.
Operator alias for pipe.
operator alias for fby
operator alias for fby
The
Haltconstructor instructs the driver to stop due to the givenThrowable. The specialThrowableProcess.Endindicates normal termination. It's more typical to construct aHaltviaProcess.halt(for normal termination) orProcess.fail(err)(for termination with an error).