task

Show Deprecated

The task library allows for functions and threads to be scheduled with the Task 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

void

Returns

void

synchronize

void

Returns

void

wait

Parameters

duration: number
Default Value: 0

Returns

cancel

void

Parameters

thread: coroutine

Returns

void