Package gnu.mapping
Class Future<T>
- java.lang.Object
-
- java.lang.Thread
-
- gnu.mapping.Future<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description RunnableClosure<T>closure-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallContextgetCallContext()Get the CallContext we use for this Thread.TgetValue()Return the actual value.static Futuremake(Procedure action, Environment penvironment, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)voidrun()StringtoString()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
-
-
-
-
Field Detail
-
closure
public RunnableClosure<T> closure
-
-
Method Detail
-
make
public static Future make(Procedure action, Environment penvironment, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
-
getCallContext
public final CallContext getCallContext()
Get the CallContext we use for this Thread.
-
getValue
public T getValue()
Description copied from interface:LazyReturn the actual value. Note thatgetValue()may returnthis, if this object isn't actually lazy. It may also return another lazy value. Normally you should usePromise.force{val}to extra a non-lazy (eager) value.
-
-