public static class Coroutine.Subroutine<I,T,O> extends Coroutine<I,O>
Coroutine.Subroutine<I,T,O>| Constructor and Description |
|---|
Subroutine(Coroutine<I,T> rCoroutine,
CoroutineStep<T,O> rReturnStep)
Creates a new instance that invokes the code of another coroutine as
a subroutine and then returns the control flow to a step in the
invoking subroutine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
runAsync(java.util.concurrent.CompletableFuture<I> fExecution,
Continuation<?> rContinuation)
Executes this subroutine asynchronously in the given future and
continuation.
|
O |
runBlocking(I rInput,
Continuation<?> rContinuation)
Executes this subroutine synchronously in the given continuation.
|
first, first, runAsync, runAsync, runBlocking, runBlocking, then, then, toStringdeleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic Subroutine(Coroutine<I,T> rCoroutine, CoroutineStep<T,O> rReturnStep)
rCoroutine - The coroutine to invoke as a subroutinerReturnStep - The step to return to after the subroutine
executionpublic void runAsync(java.util.concurrent.CompletableFuture<I> fExecution, Continuation<?> rContinuation)
fExecution - The execution futurerContinuation - The continuation of the executionpublic O runBlocking(I rInput, Continuation<?> rContinuation)
rInput - The input valuerContinuation - The continuation of the execution