Skip to contents

https://github.com/HenrikBengtsson/future/issues/263

Usage

with_plan(expr, ..., envir = parent.frame())

Arguments

expr

An expression to evaluate using a future plan.

...

Passed to future::plan(). Pass a plan here, e.g. future::sequential.

envir

An environment in which to evaluate expr.

Value

Value returned by expr.

Examples

with_plan(1 + 1, future::sequential)
#> [1] 2