For a 'recvAio', the received value may be retrieved at $data
.
For a 'sendAio', the send result may be retrieved at $result
. This
will be zero on success, or else an integer error code.
To access the values directly, use for example on a 'recvAio' x
:
call_aio(x)$data
.
For a 'recvAio', if an error occurred in unserialization or conversion of
the message data to the specified mode, a raw vector will be returned
instead to allow recovery (accompanied by a warning).
Once the value has been successfully retrieved, the Aio is deallocated
and only the value is stored in the Aio object.
Note this function operates silently and does not error even if 'aio' is
not an active Aio, always returning invisibly the passed object.