For a 'recvAio', the received raw vector may be retrieved at $raw
(unless 'keep.raw' was set to FALSE when receiving), and the converted R
object 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', in case of an error in unserialisation or data conversion
(for example if the incorrect mode was specified), the received raw vector
will be stored at $data
to allow for the data to be recovered.
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.