public class ConcatenatedContinuation extends Object implements Continuation
Continuations into one.
Essentially, take two functions 'first', and 'then', and creates a new function
concat(x) := then(first(x))
Note that this is useful but expensive. If you control how the 'first' Continuation
gets created, you should try to have 'then' incorporated into it during its creation,
such as Continuable.Continuable(Script, Env, Continuation) or via
CpsCallableInvocation.invoke(Env, SourceLocation, Continuation).
Continuation.HaltHALT| Constructor and Description |
|---|
ConcatenatedContinuation(Continuation first,
Continuable then) |
ConcatenatedContinuation(Continuation first,
com.google.common.base.Function<Outcome,Outcome> mapper,
Continuable then) |
public ConcatenatedContinuation(Continuation first, com.google.common.base.Function<Outcome,Outcome> mapper, Continuable then)
public ConcatenatedContinuation(Continuation first, Continuable then)
public Next receive(Object o)
receive in interface ContinuationCopyright © 2011–2019. All rights reserved.