runTask

Runs a new asynchronous task.

task will be called synchronously from within the vibeRunTask call. It will continue to run until vibeYield() or any of the I/O or wait functions is called.

Note that the maximum size of all args must not exceed maxTaskParameterSize.

  1. Task runTask(void delegate(ARGS) @(safe) task, ARGS args)
    Task
    runTask
    (
    ARGS...
    )
    (
    void delegate
    (
    ARGS
    )
    @safe
    task
    ,
    ARGS args
    )
  2. Task runTask(void delegate(ARGS) task, ARGS args)

Meta