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)
    class TaskPool
    void
    runTask
    (
    FT
    ARGS...
    )
    (,
    FT func
    ,
    auto ref ARGS args
    )
    if (
    isFunctionPointer!FT
    )
  4. void runTask(TaskSettings settings, shared(T) object, ARGS args)

Meta