Fiber.reset

bool reset() @trusted

Reset the fiber to its initial state for reuse.

This allows a fiber to be executed again from the beginning. Only works if the fiber has terminated.

Returns

true if reset succeeded, false if fiber is still running.