public abstract class Functor<T> extends Promise<T>
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCallback(Runnable callback)
Compliant implementation should notify callbacks after promise is set to
ready state.
|
protected abstract Promise<T> |
doExecute() |
T |
get() |
boolean |
isReady() |
protected void |
removeCallback(Runnable callback) |
asPromise, getDescription, Voidpublic Functor(Promise<?>... waitFor)
public T get()
public boolean isReady()
protected void addCallback(Runnable callback)
PromiseaddCallback in class Promise<T>callback - callback to notifyprotected void removeCallback(Runnable callback)
removeCallback in class Promise<T>Copyright © 2015. All rights reserved.