File: resolve.Rd

package info (click to toggle)
r-cran-promises 1.2.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,420 kB
  • sloc: cpp: 45; sh: 13; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (4)
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}