task

Show Deprecated

The task library allows for functions and threads to be scheduled with the engine's scheduler.

The functions available in this library generally support functions and threads. In most cases using a function is sufficient, but for more advanced cases it's recommended you familiarize yourself with the coroutine library.

Summary

Functions

Functions

Parameters

functionOrThread: function | coroutine
...: Variant

Returns

Parameters

functionOrThread: function | coroutine
...: Variant

Returns

Parameters

duration: number
functionOrThread: function | coroutine
...: Variant

Returns

desynchronize

()

Returns

()

synchronize

()

Returns

()

wait

Parameters

duration: number
Default Value: 0

Returns

cancel

()

Parameters

thread: coroutine

Returns

()