Awaiter

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

async
T async(T delegate() func)

Creates a new Thread from inside a Fiber and waits until it completed its work.

async
void async(T delegate() func)

Creates a new Thread from inside a Fiber and waits until it completed its work.

process
void process(void delegate() func)

Creates a Fiber (coroutine) and puts it into 'fibers'. After that, it waits until the fiber has been processed. This is supposed to be called from worker threads that were started with async.

spawn
void spawn(void delegate() f)

Creates a Fiber (coroutine) and puts it into 'fibers'. To complete the work, call 'tick' from a repeating function.

tick
void tick()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

fibers
List!Fiber fibers;
Undocumented in source.

Meta