dpromise ~master (2021-10-16T22:13:41.1161589)
Dub
Repo
Promise.then
dpromise
promise
Promise
Undocumented in source.
Promise
!
void
then
(void delegate() onFulfillment, void delegate(Exception) onRejection)
Promise
!(
Flatten
!
S
)
then
(S delegate(T) onFulfillment, U delegate(Exception) onRejection)
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
Source
See Implementation
dpromise
promise
Promise
constructors
this
functions
fail
then
properties
exception
isFulfilled
isPending
isRejected
value
variables
_isPending
_value
next