task

顯示已棄用項目

*此內容很快就會推出您所選的語言版本。

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.

概要

函式

函式

參數

functionOrThread: function | coroutine
...: Variant

返回

參數

functionOrThread: function | coroutine
...: Variant

返回

參數

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

返回

desynchronize

void

返回

void

synchronize

void

返回

void

wait

參數

duration: number
預設值:0

返回

cancel

void

參數

thread: coroutine

返回

void