vibe.d beta banner
get vibe.d
0.7.30

Function runWorkerTask

Runs a new asynchronous task in a worker thread.

Only function pointers with weakly isolated arguments are allowed to be able to guarantee thread-safety.

Prototypes

void runWorkerTask(FT, ARGS...)(
  FT func,
  auto ref ARGS args
)
if (is(typeof(*func) == function));

void runWorkerTask(alias method, T, ARGS...)(
  shared(T) object,
  auto ref ARGS args
)
if (is(typeof(__traits(getMember, object, __traits(identifier, method)))));
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License