Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

resolve

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.


promises

Abstractions for Promise-Based Asynchronous Programming

v1.2.0.1
MIT + file LICENSE
Authors
Joe Cheng [aut, cre], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.