Next: built-in utsname, Previous: built-in time, Up: built-in [Contents][Index]
Type of promises.
<promise>
: <promise> type-constructor thunkBuild and return a new <promise>
object using thunk to generate the value. The code:
(delay 3)
is equivalent to:
(new <promise> (lambda () 3))
<promise>
: <boolean> type-predicate objThe type predicate is promise?
.
<promise>
: <boolean> equality-predicate this {prom <promise>}The equality predicate is eq?
.
<promise>
: <non-negative-fixnum> hash-function thisThe hash function is promise-hash
.
<promise>
: <top> force thisApply force
to the instance and return its return value.