delayTask

Executes a delayed asynchronous task.

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

Parameters

delay Duration

The time to delay the task.

task CALLABLE

The task to execute.

args ARGS

The arguments to pass to the task.

Meta