Debian Codegraph @

man/resolve.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/promise.R
3 \name{resolve}
4 \alias{resolve}
5 \alias{reject}
6 \title{Fulfill a promise}
7 \usage{
8 resolve(value = NULL)
9
10 reject(reason)
11 }
12 \arguments{
13 \item{value}{The result from a successful calculation.}
14
15 \item{reason}{An error or string that explains why the operation failed.}
16 }
17 \description{
18 Use these functions to satisfy a promise with either success (\code{resolve})
19 or failure (\code{reject}). These functions are not exported, but rather, are
20 passed as arguments to the \code{action} function you pass to a \link{promise}
21 constructor.
22 }
23 \keyword{internal}