std:std.fiber.Fiber

Struct Fiber

Fibers provide support for asynchronous programming.

A Fiber is a lightweight 'thread of execution' that can be used to achieve a form of cooperative multitasking.

A fiber can be in one of 4 states:

Constructors
New Creates a new fiber.
Methods
Resume Resumes a suspended fiber.
Terminate Terminates a fiber.
Functions
Current Gets the currently running fiber.
Main Gets the main fiber.
Sleep Puts current fiber to sleep.
Suspend Suspends the current fiber.