mecca.reactor.lib.ondemand_worker

Run a job in a fiber, but never two simultaneously

Members

Aliases

SpawnFiberDlg
alias SpawnFiberDlg = FiberHandle delegate(void delegate() dlg) nothrow @(safe) @(nogc)

A fiber spawning delegate must be of this type

Classes

WorkerCancelled
class WorkerCancelled

Exception thrown to abort a cancelled worker

Structs

OnDemandWorkerDelegate
struct OnDemandWorkerDelegate

Same as OnDemandWorkerFunc, except with a delegate.

OnDemandWorkerFunc
struct OnDemandWorkerFunc(alias F)

Run a job in a fiber, making sure never to run two simultaneously.

Meta