OnDemandWorkerFunc.disable

Disable the worker from receiving new jobs.

This is useful in preperation for shutdown of the system. Disabling the worker does not terminate a current job, if one is running. Use cancel to do that.

struct OnDemandWorkerFunc(alias F)
nothrow @safe @nogc
void
disable
()

Meta