make_futures: Construct futures for several expressions

View source: R/prog_utils.R

make_futuresR Documentation

Construct futures for several expressions

Description

Instead of evaluating its arguments, this function converts them into futures using future::future(). Calling future::value() on each one will yield the value of that expression.

Usage

make_futures(..., .future.args = list())

Arguments

...

Expressions for which to construct futures.

.future.args

Additional arguments to pass to future::future().

Value

A list of futures, one for each expression in ....

Examples


library(future)
flist <- make_futures(a = 1+1, b = 2+2)
flist
value(flist)


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.