public interface AsyncTask
Asynchronous tasks are scheduled via ExecutionContext.resumeAfter(AsyncTask)
.
The call executor executes the task (by calling execute(ContinueCallback)
)
at some point after the task has been scheduled, and resumes the Lua function
call at some point after the task calls the method AsyncTask.ContinueCallback.finished()
on the callback object supplied to it.
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncTask.ContinueCallback
An interface for notifying the call executor that an asynchronous task is finished.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(AsyncTask.ContinueCallback callback)
Executes the asynchronous task.
|
void execute(AsyncTask.ContinueCallback callback)
The task must call AsyncTask.ContinueCallback.finished()
on callback
to
notify the call executor that the task is finished. The callback
object
is supplied to the task by the executor; tasks may assume that callback
is not null
.
callback
- continuation callback, to be called by the task once it is finishedCopyright © 2016. All rights reserved.