| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/aio.R |
| 3 |
\name{race_aio} |
| 4 |
\alias{race_aio} |
| 5 |
\title{Race Aio} |
| 6 |
\usage{ |
| 7 |
race_aio(x, cv) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A list of Aio objects.} |
| 11 |
|
| 12 |
\item{cv}{A condition variable. This must be the same cv supplied to |
| 13 |
\code{\link[=recv_aio]{recv_aio()}} or \code{\link[=request]{request()}} when creating the Aio objects in \code{x}.} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
Integer index of the first resolved Aio, or 0L if none are resolved, |
| 17 |
the list is empty, or the cv was terminated. |
| 18 |
} |
| 19 |
\description{ |
| 20 |
Returns the index of the first resolved Aio in a list, waiting if necessary. |
| 21 |
} |