Function TaskPool.runTask
Runs a new asynchronous task in a worker thread.
void runTask(FT, ARGS...)
(
FT func,
auto ref ARGS args
)
if (isFunctionPointer!FT);
void runTask(alias method, T, ARGS...)
(
shared(T) object,
auto ref ARGS args
)
if (is(typeof(__traits(getMember, object, __traits(identifier, method)))));
void runTask(FT, ARGS...)
(
TaskSettings settings,
FT func,
auto ref ARGS args
)
if (isFunctionPointer!FT);
void runTask(alias method, T, ARGS...)
(
TaskSettings settings,
shared(T) object,
auto ref ARGS args
)
if (is(typeof(__traits(getMember, object, __traits(identifier, method)))));
Only function pointers with weakly isolated arguments are allowed to be able to guarantee thread-safety.