| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/aio.R |
| 3 |
\name{as.promise.recvAio} |
| 4 |
\alias{as.promise.recvAio} |
| 5 |
\title{Make recvAio Promise} |
| 6 |
\usage{ |
| 7 |
\method{as.promise}{recvAio}(x) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{an object of class 'recvAio'.} |
| 11 |
} |
| 12 |
\value{ |
| 13 |
A 'promise' object. |
| 14 |
} |
| 15 |
\description{ |
| 16 |
Creates a 'promise' from an 'recvAio' object. |
| 17 |
} |
| 18 |
\details{ |
| 19 |
This function is an S3 method for the generic \code{as.promise} for class |
| 20 |
'recvAio'. |
| 21 |
|
| 22 |
Requires the \pkg{promises} package. |
| 23 |
|
| 24 |
Allows a 'recvAio' to be used with the promise pipe \verb{\%...>\%}, which schedules |
| 25 |
a function to run upon resolution of the Aio. |
| 26 |
} |