as.promise.ncurlAio {nanonext}R Documentation

Make ncurl Promise

Description

Creates a ‘promise’ from an ‘ncurlAio’ object.

Usage

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

Arguments

x

an object of class ‘ncurlAio’.

Details

This function is an S3 method for the generic as.promise for class ‘ncurlAio’.

Requires the promises package.

Allows an ‘ncurlAio’ to be used with the promise pipe %...>%, which schedules a function to run upon resolution of the Aio.

Value

A ‘promise’ object.


[Package nanonext version 1.1.1 Index]