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 IAsyncLoop

interface IAsyncLoop
Extends com.amazon.apmf.IStandard Executor that dispatches [ICallable] tasks for asynchronous execution.

Methods

submit()

IFuture* submit(ICallable* callable)
Runs the ICallable. An ICallable submitted to multiple IAsyncLoops will be run once by each.

Parameters

callable
ICallable* — Required A pointer to the ICallable to run.

Returns

IFuture* The IFuture corresponding to the ICallable

Throws


submitDetached()

void submitDetached(ICallable* callable)
Runs the ICallable without returning an IFuture. Unhandled exceptions from the ICallable propagate to the async loop thread.

Parameters

callable
ICallable* — Required A pointer to the ICallable to run.

Throws


Last modified on October 29, 2026