public class Promise<T>
extends com.darylteo.rx.promises.AbstractPromise<T>
| Constructor and Description |
|---|
Promise() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Promise<T> |
defer() |
Promise<T> |
fail(PromiseAction<java.lang.Exception> onRejected) |
Promise<T> |
fail(PromiseFunction<java.lang.Exception,T> onRejected) |
Promise<T> |
fail(RepromiseFunction<java.lang.Exception,T> onRejected) |
Promise<T> |
fin(FinallyAction onFinally) |
Promise<T> |
fin(FinallyFunction<?> onFinally) |
protected <O> Promise<O> |
promise(rx.util.functions.Function onFulfilled,
rx.util.functions.Function onRejected,
rx.util.functions.Function onFinally) |
Promise<java.lang.Void> |
then(PromiseAction<T> onFulfilled) |
Promise<java.lang.Void> |
then(PromiseAction<T> onFulfilled,
PromiseAction<java.lang.Exception> onRejected) |
<O> Promise<O> |
then(PromiseFunction<T,O> onFulfilled) |
<O> Promise<O> |
then(PromiseFunction<T,O> onFulfilled,
PromiseAction<java.lang.Exception> onRejected) |
<O> Promise<O> |
then(PromiseFunction<T,O> onFulfilled,
PromiseFunction<java.lang.Exception,O> onRejected) |
<O> Promise<O> |
then(PromiseFunction<T,O> onFulfilled,
RepromiseFunction<java.lang.Exception,O> onRejected) |
<O> Promise<O> |
then(RepromiseFunction<T,O> onFulfilled) |
<O> Promise<O> |
then(RepromiseFunction<T,O> onFulfilled,
PromiseAction<java.lang.Exception> onRejected) |
<O> Promise<O> |
then(RepromiseFunction<T,O> onFulfilled,
PromiseFunction<java.lang.Exception,O> onRejected) |
<O> Promise<O> |
then(RepromiseFunction<T,O> onFulfilled,
RepromiseFunction<java.lang.Exception,O> onRejected) |
_then, become, fulfill, getReason, getState, getValue, isFulfilled, isPending, isRejected, onCompleted, onError, onNext, reject, rejectaggregate, aggregate, all, average, averageDoubles, averageFloats, averageLongs, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, cache, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, concat, concat, concat, concat, concat, concat, concat, concat, concat, count, create, debounce, debounce, defer, dematerialize, distinct, distinct, distinctUntilChanged, distinctUntilChanged, empty, error, filter, finallyDo, first, first, firstOrDefault, firstOrDefault, flatMap, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, groupBy, groupBy, interval, interval, just, map, mapMany, materialize, merge, merge, merge, merge, merge, merge, merge, merge, merge, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, multicast, never, observeOn, onErrorResumeNext, onErrorResumeNext, onErrorReturn, onExceptionResumeNext, publish, range, reduce, reduce, replay, retry, retry, sample, sample, scan, scan, sequenceEqual, sequenceEqual, skip, skipWhile, skipWhileWithIndex, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, sum, sumDoubles, sumFloats, sumLongs, switchDo, switchOnNext, synchronize, take, takeFirst, takeFirst, takeLast, takeUntil, takeWhile, takeWhileWithIndex, throttleFirst, throttleFirst, throttleLast, throttleLast, throttleWithTimeout, throttleWithTimeout, timestamp, toBlockingObservable, toList, toSortedList, toSortedList, where, window, window, window, window, window, window, window, window, window, window, zip, zip, zip, zip, zip, zip, zip, zip, zip, zippublic static <T> Promise<T> defer()
public <O> Promise<O> then(PromiseFunction<T,O> onFulfilled)
public <O> Promise<O> then(RepromiseFunction<T,O> onFulfilled)
public Promise<java.lang.Void> then(PromiseAction<T> onFulfilled)
public <O> Promise<O> then(PromiseFunction<T,O> onFulfilled, PromiseFunction<java.lang.Exception,O> onRejected)
public <O> Promise<O> then(PromiseFunction<T,O> onFulfilled, RepromiseFunction<java.lang.Exception,O> onRejected)
public <O> Promise<O> then(PromiseFunction<T,O> onFulfilled, PromiseAction<java.lang.Exception> onRejected)
public <O> Promise<O> then(RepromiseFunction<T,O> onFulfilled, PromiseFunction<java.lang.Exception,O> onRejected)
public <O> Promise<O> then(RepromiseFunction<T,O> onFulfilled, RepromiseFunction<java.lang.Exception,O> onRejected)
public <O> Promise<O> then(RepromiseFunction<T,O> onFulfilled, PromiseAction<java.lang.Exception> onRejected)
public Promise<java.lang.Void> then(PromiseAction<T> onFulfilled, PromiseAction<java.lang.Exception> onRejected)
public Promise<T> fail(PromiseFunction<java.lang.Exception,T> onRejected)
public Promise<T> fail(RepromiseFunction<java.lang.Exception,T> onRejected)
public Promise<T> fail(PromiseAction<java.lang.Exception> onRejected)
public Promise<T> fin(FinallyFunction<?> onFinally)
public Promise<T> fin(FinallyAction onFinally)
protected <O> Promise<O> promise(rx.util.functions.Function onFulfilled, rx.util.functions.Function onRejected, rx.util.functions.Function onFinally)