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 IAsyncLoopController

interface IAsyncLoopController
Extends com.amazon.apmf.IStandard Controller for an IAsyncLoop.

Methods

start()

void start()
Starts the async loop and begins processing items on the current thread.

stop()

void stop()
Stops the async loop. Tasks already in progress run to completion. Queued tasks that have not started are discarded; their associated futures are rejected with [OperationCancelledError]. Blocks until all in-progress tasks have finished. This method is idempotent.
Last modified on October 29, 2026