public class EvalContextWithTask extends ForwardingEvalContext
EvalContext.Promise<T>, EvalContext.Value<T>
delegate
LOG
Modifier and Type | Method and Description |
---|---|
Optional<Task<?>> |
currentTask()
When called during the evaluation of a task, this method will return the
Task
currently being processed. |
evaluateInternal, immediateValue, invokeProcessFn, listener, promise, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
async, evaluate, sync
public Optional<Task<?>> currentTask()
EvalContext
Task
currently being processed. Otherwise an empty value will be returned.
The return value of this method is stable for each instance of EvalContext
that is
passed into the process functions. Calls from multiple threads will see the same result as
longs as the calls are made to the same instance.
Copyright © 2020. All rights reserved.