Validator functions for object types created by {nanonext}.
Value
Logical value TRUE or FALSE.
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.
Examples
sock <- socket(listen = "inproc://isaio")
r <- recv_aio(sock)
s <- send_aio(sock, "test")
is_aio(r)
#> [1] TRUE
is_aio(s)
#> [1] TRUE
close(sock)
s <- socket()
is_nano(s)
#> [1] TRUE
n <- nano()
is_nano(n)
#> [1] TRUE
close(s)
n$close()