Module Future

This module is undocumented. This is a list of its definitions.

cancelFuture :: Future a -> Boolean -> <Proc> Boolean

Attempts to cancel the computation. The boolean parameter tells whether a computation that has already started may be interrupted. Returns True if the computation was cancelled.

getFutureResult :: Future a -> <Proc,Exception> a

Waits until the computation completes and returns its result. Fails if the computation failed or was cancelled.

isFutureCancelled :: Future a -> <Proc> Boolean

Returns True if the computation was cancelled before it completed.

isFutureDone :: Future a -> <Proc> Boolean

Returns True if the computation has completed, whether normally, by failing or by being cancelled.