Interface IAsyncLoop
interface IAsyncLoop
Extends com.amazon.apmf.IStandard
Executor that dispatches [ICallable] tasks for asynchronous execution.
Methods
submit()
Runs theIFuture*submit(ICallable*callable)
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
InvalidArgumentError— if callable is null.
submitDetached()
Runs thevoidsubmitDetached(ICallable*callable)
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
InvalidArgumentError— if callable is null.

