interface ExecutorTask
source · line 18public
public interface ExecutorTask
Keeps an executor available until the task and its completion callback have exited.
function dispatch
source · line 22public
public fun dispatch(work: CoroutineWork): Unit
Enqueues one drive; it must never invoke work inline or reject an active task.
parameter work
source · line 22public
work: CoroutineWork
property executor
source · line 19public
public val executor: CoroutineExecutor
get: public read-only
function dispatchBlocking
source · line 30public
public fun dispatchBlocking(work: BlockingWork): Unit
Enqueues one blocking computation with the same lifetime guarantee.
parameter work
source · line 30public
work: BlockingWork
function complete
source · line 33public
public fun complete(): Unit
Releases this registration exactly once, after all of its work has exited.
function dispatchResume
source · line 25public
public fun dispatchResume(work: CoroutineWork): Unit
Resumes a released drive; an executor may run it during a bounded event turn.
parameter work
source · line 25public
work: CoroutineWork