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()
Executes this callable’s task on the given async loop. The callable may return a result as ancom.amazon.apmf.IDataObject?call(IAsyncLoop*asyncLoop)
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.

