Runs a task callback.
This function is invoked when an operation, started through createTask, generates an event.
Generally, tasks schedule Dart code in the global event loop when the createTask function is invoked. Since the event loop does not expect any return value from the code it runs, the runTask function is a void function.
The task
object must be the same as the one created with createTask.
It is good practice that task operations provide a meaningful argument
,
so that custom zones can interact with it. They might want to log or
replace the argument before calling the run
function.
See createTask.
Experimental. Might disappear without notice.
Source
void runTask/*<T, A>*/( /*=T*/ run(/*=T*/ task, /*=A*/ argument), Object/*=T*/ task, Object/*=A*/ argument);