Promise

Undocumented in source.

Constructors

this
this(void delegate(void delegate(Either!T) nothrow) nothrow executer)
Undocumented in source.

Members

Functions

fail
Promise!T fail(T delegate(Exception) onRejection)
Undocumented in source. Be warned that the author may not have intended to support it.
then
Promise!(Flatten!S) then(S delegate(T) onFulfillment, U delegate(Exception) onRejection)
Undocumented in source.
then
Promise!void then(void delegate() onFulfillment, void delegate(Exception) onRejection)
Undocumented in source. Be warned that the author may not have intended to support it.
then
Promise!(Flatten!S) then(S delegate() onFulfillment, U delegate(Exception) onRejection)
Undocumented in source.

Properties

exception
inout(Exception) exception [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isFulfilled
bool isFulfilled [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isPending
bool isPending [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isRejected
bool isRejected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
inout(Unqual!T) value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_isPending
bool _isPending;
Undocumented in source.
_value
Either!T _value;
Undocumented in source.
next
void delegate() nothrow next;
Undocumented in source.

Inherited Members

From Awaiter

isPending
bool isPending [@property getter]
Undocumented in source.
isFulfilled
bool isFulfilled [@property getter]
Undocumented in source.
isRejected
bool isRejected [@property getter]
Undocumented in source.
then
Awaiter then(void delegate() onFulfillment, void delegate(Exception) onRejection)
Undocumented in source.

Meta