delayTask

Executes a delayed asynchronous task.

  1. void delayTask(Duration delay, void delegate(ARGS) @(safe) task, ARGS args)
    static if(isWeb)
    void
    delayTask
    (
    ARGS...
    )
    (
    Duration delay
    ,
    void delegate
    (
    ARGS
    )
    @safe
    task
    ,
    auto ref ARGS args
    )
  2. void delayTask(Duration delay, void delegate(ARGS) @(system) task, ARGS args)
  3. void delayTask(Duration delay, CALLABLE task, ARGS args)

Parameters

delay Duration

The time to delay the task.

task void delegate
(
ARGS
)
@safe

The task to execute.

args ARGS

The arguments to pass to the task.

Meta