set_promise_context {nanonext} | R Documentation |
Set Promise Context
Description
If called from an appropriate context, creates an event-driven promise that will resolve asynchronously when the request is complete.
Usage
set_promise_context(x, ctx)
Arguments
x |
a 'recvAio' object returned by |
ctx |
the context environment. |
Details
The object passed as ‘x’ is returned regardless of whether the promise context was set successfully or not. If successful, ‘x’ is modified in place with the promise context.
Value
The object ‘x’.
[Package nanonext version 1.1.1 Index]