TaskPool.runTask

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

Meta