postTaskAsync

fun <T : JsAny?> postTaskAsync(callback: SchedulerPostTaskCallback<T>, options: SchedulerPostTaskOptions = definedExternally): Promise<T>(source)

The postTask() method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.

MDN Reference