Skip to main content

thread

Description:

  Creates a new coroutine from a function and executes it.

Signature:

thread: function(routine: function(): boolean): Routine.Job

Parameters:

ParameterTypeDescription
routinefunctionA function to execute as a coroutine.

Returns:

Return TypeDescription
Routine.JobA handle to the coroutine that was created.