Promise.then

Undocumented in source.
  1. Promise!void then(void delegate() onFulfillment, void delegate(Exception) onRejection)
  2. Promise!(Flatten!S) then(S delegate(T) onFulfillment, U delegate(Exception) onRejection)
  3. Promise!(Flatten!S) then(S delegate() onFulfillment, U delegate(Exception) onRejection)
    class Promise(T)
    nothrow
    Promise!(Flatten!S)
    then
    (
    S
    U
    )
    (
    S delegate
    ()
    onFulfillment
    ,
    U delegate
    (
    Exception
    )
    onRejection = cast(S delegate
    (
    Exception
    )
    )null
    )
    if (
    is(Flatten!S == Flatten!U)
    )
    if (
    !is(Unqual!T : Exception) &&
    !is(Unqual!T : Promise!K,
    K
    )
    )

Meta