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