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 ICallable

interface ICallable
Extends com.amazon.apmf.IStandard A task that can return a result or throw an exception.

Methods

name()

string? name()
A user-friendly identifier for this ICallable. The value returned may be used in logging and tracing in the IAsyncLoop.

Returns

string? The return value is optional and might be absent. A unique identifier.

call()

com.amazon.apmf.IDataObject? call(IAsyncLoop* asyncLoop)
Executes this callable’s task on the given async loop. The callable may return a result as an IDataObject or throw an error.

Parameters

asyncLoop
IAsyncLoop* — Required The async loop executing this callable.

Returns

com.amazon.apmf.IDataObject? The return value is optional and might be absent. The result of this callable as an IDataObject.
Last modified on October 29, 2026