future (version 0.8.0)

Future-class: A future represents a value that will be available at some point in the future

Description

A future is an abstraction for a value that may available at some point in the future. A future can either be unresolved or resolved, a state which can be checked with resolved(). As long as it is unresolved, the value is not available. As soon as it is resolved, the value is available via value().

Usage

Future(expr = NULL, envir = parent.frame(), substitute = FALSE, ...)

Arguments

expr
envir
The environment in which the evaluation is done (or inherits from if local is TRUE).
substitute
If TRUE, argument expr is substitute():ed, otherwise not.
...
Additional named elements of the future.

Value

  • An object of class Future.

Details

A Future object is itself an environment.

See Also

One function that creates a Future is future(). It returns a Future that evaluates an R expression in the future. An alternative approach is to use the %<=%< a=""> infix assignment operator, which creates a future from the right-hand-side (RHS) R expression and assigns its future value to a variable as a promise.