Modifier and Type | Field and Description |
---|---|
RunnableClosure<T> |
closure |
Constructor and Description |
---|
Future(Procedure action) |
Future(Procedure action,
gnu.kawa.io.InPort in,
gnu.kawa.io.OutPort out,
gnu.kawa.io.OutPort err) |
Modifier and Type | Method and Description |
---|---|
CallContext |
getCallContext()
Get the CallContext we use for this Thread.
|
T |
getValue()
Return the actual value.
|
static Future |
make(Procedure action,
Environment penvironment,
gnu.kawa.io.InPort in,
gnu.kawa.io.OutPort out,
gnu.kawa.io.OutPort err) |
void |
run() |
java.lang.String |
toString() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public RunnableClosure<T> closure
public Future(Procedure action, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
public Future(Procedure action)
public static Future make(Procedure action, Environment penvironment, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
public final CallContext getCallContext()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public T getValue()
Lazy
getValue()
may return this
,
if this object isn't actually lazy.
It may also return another lazy value.
Normally you should use Promise.force{val}
to extra a non-lazy (eager) value.public java.lang.String toString()
toString
in class java.lang.Thread