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

Parameters

functionOrThread: function | thread
...: Variant

Returns

defer

Parameters

functionOrThread: function | thread
...: Variant

Returns

delay

Parameters

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

Returns

desynchronize

void

Returns

void

synchronize

void

Returns

void

wait

Parameters

duration: number
Default Value: "0"

Returns

cancel

void

Parameters

thread: thread

Returns

void