Skip to main content

task

Waiting inside an async handler: init and event handlers may await, update is deliberately synchronous.

1 function, 0 constants. Scripts reach it as task::.

Functions

Argument kinds are the script values a call passes: node is a node handle, any a table or value of any kind, fn a callback.

functionacts onwhat it does
wait(token: int)Park an async handler until the engine wakes the token it was given.