Interface IIoAsyncLoop
interface IIoAsyncLoop
Extends IAsyncLoop
An [IAsyncLoop] that additionally monitors file descriptors for I/O readiness.
Methods
addFdEventListener()
Starts monitoring the file descriptor for I/O readiness. Ancom.amazon.apmf.ISubscription*addFdEventListener(i32fd,AsyncFdEventevents,IFdEventListener*listener)
IFdEventListener can only be passed to a single instance of IAsyncLoop, and throws an
error otherwise.
Parameters
fd
i32 — Required
The file descriptor to monitor.
events
AsyncFdEvent — Required
The I/O events to monitor for.
listener
IFdEventListener* — Required
The listener to invoke when an event is triggered.
Returns
com.amazon.apmf.ISubscription*
The subscription for the registered listener.
Throws
InvalidArgumentError— if neither fd read nor fd write monitoring is requested.InvalidArgumentError— if fd error monitoring is not requested.

