lovr.task.start
EditStarts a new task. This creates a new coroutine and resumes it with lovr.task.resume:
local task = coroutine.create(f)
task:resume(...)
return task
task = lovr.task.start(f, ...)Arguments
| Name | Type | Description |
| f | function | The function used for the coroutine body. |
| ... | * | Arguments to pass to the task. |
Returns
| Name | Type | Description |
| task | thread | The new task. |