as.promise.recvAio: Make recvAio Promise

View source: R/aio.R

as.promise.recvAioR Documentation

Make recvAio Promise

Description

Creates a 'promise' from an 'recvAio' object.

Usage

## S3 method for class 'recvAio'
as.promise(x)

Arguments

x

an object of class 'recvAio'.

Details

This function is an S3 method for the generic as.promise for class 'recvAio'.

Requires the promises package.

Allows a 'recvAio' to be used with the promise pipe ⁠%...>%⁠, which schedules a function to run upon resolution of the Aio.

Value

A 'promise' object.


nanonext documentation built on April 4, 2025, 5:18 a.m.