force

Name

force -- Await value.

Type: function

Synopsis

force( future, item ...);

Arguments

future

An instance of <future>

Return Values

item

Instances of <object>

Description

Awaits the values from the parallel computation. Blocks until the future evaluation completes. If the future expression signals an exception, this procedure signals a <thread-died> exception.

Note: Maybe we should signal the same exception from the force. That would mean that the exception's stack and the current stack are from two different threads. This probably breaks lots of stuff. And what about restarting after the exception?