Function OnDemandWorkerFunc.disable
Disable the worker from receiving new jobs.
void disable
() nothrow @nogc @safe;
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.