Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IIoAsyncLoop

interface IIoAsyncLoop
Extends IAsyncLoop An [IAsyncLoop] that additionally monitors file descriptors for I/O readiness.

Methods

addFdEventListener()

com.amazon.apmf.ISubscription* addFdEventListener(i32 fd, AsyncFdEvent events, IFdEventListener* listener)
Starts monitoring the file descriptor for I/O readiness. An 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


Last modified on October 29, 2026