TaskHandle that can be used to monitor or cancel the task.FiberScheduler.spawn
TaskHandle spawn(void delegate() fn, string name = null) @trustedSpawn a new fiber task with the given delegate.
The task is added to the ready queue and will be executed when the scheduler runs.
Parameters
fn | The delegate to execute in the fiber context. |
name | Optional name for the task (useful for debugging). |
Returns
A
TaskHandle spawn(void function() fn, string name = null) @trustedditto