Engine API
/
Libraries
/
task
task
Show Deprecated
Summary
Functions
spawn
(
functionOrThread:
function
|
thread
, ...:
Variant
):
thread
defer
(
functionOrThread:
function
|
thread
, ...:
Variant
):
thread
delay
(
duration:
number
, functionOrThread:
function
|
thread
, ...:
Variant
):
thread
desynchronize
(
):
void
synchronize
(
):
void
wait
(
duration:
number
):
number
cancel
(
thread:
thread
):
void
Functions
spawn
thread
Parameters
functionOrThread
:
function
|
thread
...
:
Variant
Returns
thread
defer
thread
Parameters
functionOrThread
:
function
|
thread
...
:
Variant
Returns
thread
delay
thread
Parameters
duration
:
number
functionOrThread
:
function
|
thread
...
:
Variant
Returns
thread
desynchronize
void
Returns
void
synchronize
void
Returns
void
wait
number
Parameters
duration
:
number
Default Value: "0"
Returns
number
cancel
void
Parameters
thread
:
thread
Returns
void