threadLoop
Description:
Create a new coroutine from a function that runs repeatedly.
Signature:
threadLoop: function(routine: function(): boolean): Routine.Job
Parameters:
Parameter | Type | Description |
---|---|---|
routine | function | A function to execute repeatedly as a coroutine. The function should return false to continue running, or true to stop. |
Returns:
Return Type | Description |
---|---|
Routine.Job | A handle to the coroutine that was created. |