The OpenD Programming Language

Task.executeInNewThread

Create a new thread for executing this Task, execute it in the newly created thread, then terminate the thread. This can be used for future/promise parallelism. An explicit priority may be given to the Task. If one is provided, its value is forwarded to core.thread.Thread.priority. See std.parallelism.task for usage example.

  1. void executeInNewThread()
  2. void executeInNewThread(int priority)
    struct Task(alias fun, Args...)
    @trusted
    void
    executeInNewThread
    ()

Meta