Package gnu.mapping
Class RunnableClosure<T>
- java.lang.Object
-
- gnu.mapping.RunnableClosure<T>
-
-
Constructor Summary
Constructors Constructor Description RunnableClosure(Procedure action)
RunnableClosure(Procedure action, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
call()
CallContext
getCallContext()
Get the CallContext we use for this Thread.String
getName()
Object
getResult()
Get the result of running thisRunnable
.void
run()
void
setName(String name)
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getCallContext
public final CallContext getCallContext()
Get the CallContext we use for this Thread.
-
getResult
public Object getResult() throws Throwable
Get the result of running thisRunnable
. The result is a value or a thrown exception. Should be called after {#code run} finishes.- Throws:
Throwable
-
-