postTask

suspend fun <T : JsAny?> Scheduler.postTask(callback: SchedulerPostTaskCallback<T>): T(source)

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

MDN Reference