kawa.lang

Class Promise

public class Promise extends Object implements Printable

Implement Scheme "promises".
Constructor Summary
Promise(Procedure thunk)
Create a new Promise that will evaluate thunk when forced.
Method Summary
Objectforce()
voidprint(Consumer out)

Constructor Detail

Promise

public Promise(Procedure thunk)
Create a new Promise that will evaluate thunk when forced.

Method Detail

force

public Object force()

print

public void print(Consumer out)