FiberScheduler.park

void park() @safe nothrow

Park the current task.

Marks the currently executing task as WAITING. When the fiber subsequently yields, tick() will not re-queue it. The task remains suspended until unpark() is called.

Must be called from within a fiber that was spawned by this scheduler. Typically called immediately before Fiber.yield():

scheduler.park();
Fiber.yield();
// ... resumed by unpark() ...

Thread_Affinity: Must be called from the loop thread, inside a fiber.