future
evaluates a set of forms asynchronously
Usage:
(future form*)
Returns a promise whose expressions are immediately evaluated in another thread of execution.
An Example
(define fut (future
(seq->vector (generate
(emit "red")
(emit "orange")
(emit "yellow")))))
(fut)
This example produces a promise called fut that converts the results of an asynchronous block into a vector. The (fut)
call will block until the future returns a value.