|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkawa.lang.Promise
public class Promise
Implement Scheme "promises".
Constructor Summary | |
---|---|
Promise(Procedure thunk)
Create a new Promise that will evaluate thunk when forced. |
Method Summary | |
---|---|
java.lang.Object |
force()
|
void |
print(Consumer out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Promise(Procedure thunk)
Method Detail |
---|
public java.lang.Object force() throws java.lang.Throwable
java.lang.Throwable
public void print(Consumer out)
print
in interface Printable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |