Methods | |
and | Source Codeshared formal Completion<Element|Other,Tuple<Element|Other,Other,T>> and<Other>(Promise<Other> other) Combine the current completion with a provided promise and return a new completion object that
The
The Promise<String> p1 = ... Promise<Integer> p2 = ... Promise<Boolean> p3 = ... p1.and(p2, p3) .compose((Boolean b, Integer i, String s) => doSomething(b, i, s)); |
completed | Source Codeshared default void completed(Anything(*T) onFulfilled, Anything(Throwable) onRejected = ...) When completion happens, the provided function will be invoked. Parameters:
|
flatMap | Source Codeshared formal Promise<Result> flatMap<Result>(Promise<Result>(*T) onFulfilled, Promise<Result>(Throwable) onRejected = ...) Compose and return a Parameters:
|
map | Source Codeshared formal Promise<Result> map<Result>(Result(*T) onFulfilled, Result(Throwable) onRejected = ...) Compose and return a Parameters:
|
Inherited Methods |
Methods inherited from: Object |