is_aio {nanonext} | R Documentation |
Validators
Description
Validator functions for object types created by {nanonext}.
Usage
is_aio(x)
is_nano(x)
Arguments
x |
an object. |
Details
Is the object an Aio (inheriting from class ‘sendAio’ or ‘recvAio’).
Is the object an object inheriting from class ‘nano’ i.e. a nanoSocket, nanoContext, nanoStream, nanoListener, nanoDialer, or nano Object.
Value
Logical value TRUE or FALSE.
Examples
sock <- socket(listen = "inproc://isaio")
r <- recv_aio(sock)
s <- send_aio(sock, "test")
is_aio(r)
is_aio(s)
close(sock)
s <- socket()
is_nano(s)
n <- nano()
is_nano(n)
close(s)
n$close()
[Package nanonext version 1.1.1 Index]