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)
    Promise!(T, E)
    async
    (
    T
    E = Exception
    )
    (
    lazy T task
    ,)
    if (
    !is(T == return)
    )
  2. Promise!(T, E) async(T delegate() task, size_t size)
  3. Promise!(T, E) async(T function() task)

Meta