up.util.task(callback)
JavaScript function
Schedules a function to the JavaScript task queue (also "macrotask queue").
Example
Pass a function argument to schedule it for the next macrotask:
up.util.task(() => console.log('Hello from next task!'))
console.log('Hello from current task!')
Parameters
callback
required
The function to schedule.
Type: Function()