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.

  1. void runWorkerTask(FT func, ARGS args)
    void
    runWorkerTask
    (
    FT
    ARGS...
    )
    (
    FT func
    ,
    auto ref ARGS args
    )
    if (
    is(typeof(*func) == function)
    )
  2. void runWorkerTask(shared(T) object, ARGS args)

Meta