0 if no task is running.FiberScheduler.currentTask
size_t currentTask() @property const pure @safe nothrow @nogcGet the ID of the currently executing task.
Returns
The current task's ID, or
size_t currentTask() @property const pure @safe nothrow @nogcGet the ID of the currently executing task.
0 if no task is running.