WorkItem.this

this(void delegate() @safe task, string name = null) pure @safe nothrow @nogc

Construct a work item from a delegate.

Parameters

taskThe delegate to execute.
nameOptional name for the work item.