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)
  2. void runWorkerTask(shared(T) object, ARGS args)
    void
    runWorkerTask
    (
    alias method
    T
    ARGS...
    )
    (
    shared(T) object
    ,
    auto ref ARGS args
    )
    if (
    is(typeof(__traits(getMember, object, __traits(identifier, method))))
    )
  3. void runWorkerTask(TaskSettings settings, FT func, ARGS args)
  4. void runWorkerTask(TaskSettings settings, shared(T) object, ARGS args)

Meta