async

Evaluates task in a new fiber, and returns a promise which is fulfilled when task exits. task may use await to block on other promises.

  1. Promise!(T, E) async(T task, size_t size)
  2. Promise!(T, E) async(T delegate() task, size_t size)
  3. Promise!(T, E) async(T function() task)
    Promise!(T, E)
    async
    (
    T
    E = Exception
    )
    (
    T function
    ()
    task
    )
    if (
    !is(T == return)
    )

Meta