Modifier and Type | Class and Description |
---|---|
class |
RPromise<T>
Provides a concrete implementation
RFuture that can be updated with a success or failure
result when it becomes available. |
Modifier and Type | Method and Description |
---|---|
RFuture<T> |
RFuture.bindComplete(SignalView.Listener<Boolean> slot)
Convenience method to
ValueView.connectNotify(react.ValueView.Listener<? super T>) slot to isComplete() . |
static <T> RFuture<Collection<T>> |
RFuture.collect(Collection<? extends RFuture<T>> futures)
Returns a future containing a list of all success results from
futures . |
static <T> RFuture<T> |
RFuture.failure(Throwable cause)
Returns a future with a pre-existing failure value.
|
<R> RFuture<R> |
RFuture.flatMap(Function<? super T,RFuture<R>> func)
Maps a successful result to a new result using
func when it arrives. |
<R> RFuture<R> |
RFuture.map(Function<? super T,R> func)
Maps the value of a successful result using
func upon arrival. |
RFuture<T> |
SignalView.next()
Returns a future that is completed with the next value from this signal.
|
RFuture<T> |
AbstractSignal.next() |
RFuture<T> |
RFuture.onComplete(SignalView.Listener<? super Try<T>> slot)
Causes
slot to be notified when this future is completed. |
RFuture<T> |
RFuture.onFailure(SignalView.Listener<? super Throwable> slot)
Causes
slot to be notified if/when this future is completed with failure. |
RFuture<T> |
RFuture.onSuccess(SignalView.Listener<? super T> slot)
Causes
slot to be notified if/when this future is completed with success. |
RFuture<T> |
RFuture.recover(Function<? super Throwable,T> func)
Maps the value of a failed result using
func upon arrival. |
static <T> RFuture<T> |
RFuture.result(Try<T> result)
Returns a future with an already-computed result.
|
static <T> RFuture<List<T>> |
RFuture.sequence(Collection<? extends RFuture<T>> futures)
Returns a future containing a list of all success results from
futures if all of
the futures complete successfully, or a MultiFailureException aggregating all
failures, if any of the futures fails. |
static <A,B> RFuture<RFuture.T2<A,B>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b)
Returns a future containing the results of
a and b if both futures complete
successfully, or a MultiFailureException aggregating all failures, if either of the
futures fails. |
static <A,B,C> RFuture<RFuture.T3<A,B,C>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b,
RFuture<C> c)
Returns a future containing the results of
a , b , and c if all
futures complete successfully, or a MultiFailureException aggregating all failures,
if any of the futures fails. |
static RFuture<Void> |
RFuture.success()
Returns a future result for a
Void method. |
static <T> RFuture<T> |
RFuture.success(T value)
Returns a future with a pre-existing success value.
|
<R> RFuture<R> |
RFuture.transform(Function<Try<? super T>,Try<R>> func)
Transforms this future by mapping its result upon arrival.
|
RFuture<T> |
AbstractValue.when(Function<? super T,Boolean> cond) |
RFuture<T> |
ValueView.when(Function<? super T,Boolean> cond)
Returns a future which is completed with this value when the value meeds
cond . |
Modifier and Type | Method and Description |
---|---|
static <A,B> RFuture<RFuture.T2<A,B>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b)
Returns a future containing the results of
a and b if both futures complete
successfully, or a MultiFailureException aggregating all failures, if either of the
futures fails. |
static <A,B> RFuture<RFuture.T2<A,B>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b)
Returns a future containing the results of
a and b if both futures complete
successfully, or a MultiFailureException aggregating all failures, if either of the
futures fails. |
static <A,B,C> RFuture<RFuture.T3<A,B,C>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b,
RFuture<C> c)
Returns a future containing the results of
a , b , and c if all
futures complete successfully, or a MultiFailureException aggregating all failures,
if any of the futures fails. |
static <A,B,C> RFuture<RFuture.T3<A,B,C>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b,
RFuture<C> c)
Returns a future containing the results of
a , b , and c if all
futures complete successfully, or a MultiFailureException aggregating all failures,
if any of the futures fails. |
static <A,B,C> RFuture<RFuture.T3<A,B,C>> |
RFuture.sequence(RFuture<A> a,
RFuture<B> b,
RFuture<C> c)
Returns a future containing the results of
a , b , and c if all
futures complete successfully, or a MultiFailureException aggregating all failures,
if any of the futures fails. |
Modifier and Type | Method and Description |
---|---|
static <T> RFuture<Collection<T>> |
RFuture.collect(Collection<? extends RFuture<T>> futures)
Returns a future containing a list of all success results from
futures . |
<R> RFuture<R> |
RFuture.flatMap(Function<? super T,RFuture<R>> func)
Maps a successful result to a new result using
func when it arrives. |
static <T> RFuture<List<T>> |
RFuture.sequence(Collection<? extends RFuture<T>> futures)
Returns a future containing a list of all success results from
futures if all of
the futures complete successfully, or a MultiFailureException aggregating all
failures, if any of the futures fails. |
Copyright © 2017. All rights reserved.