Promise.fail

Undocumented in source. Be warned that the author may not have intended to support it.
class Promise(T)
nothrow
fail
(
T delegate
(
Exception
)
onRejection
)
if (
!is(Unqual!T : Exception) &&
!is(Unqual!T : Promise!K,
K
)
)

Meta