resolve: Fulfill a promise

View source: R/promise.R

resolveR Documentation

Fulfill a promise

Description

Use these functions to satisfy a promise with either success (resolve) or failure (reject). These functions are not exported, but rather, are passed as arguments to the action function you pass to a promise constructor.

Usage

resolve(value = NULL)

reject(reason)

Arguments

value

The result from a successful calculation.

reason

An error or string that explains why the operation failed.


rstudio/promises documentation built on Aug. 21, 2023, 10:16 a.m.