Java Code Examples for io.reactivex.Completable#ambArray()

The following examples show how to use io.reactivex.Completable#ambArray() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LifecycleTransformer.java    From Tangram-Android with MIT License 5 votes vote down vote up
@Override
public CompletableSource apply(Completable upstream) {
    return Completable.ambArray(upstream, mObservable.flatMapCompletable(
        new Function<Object, CompletableSource>() {
            @Override
            public CompletableSource apply(Object t) throws Exception {
                return Completable.complete();
            }
        }));
}
 
Example 2
Source File: LifecycleTransformer.java    From Tangram-Android with MIT License 5 votes vote down vote up
@Override
public CompletableSource apply(Completable upstream) {
    return Completable.ambArray(upstream, mObservable.flatMapCompletable(
        new Function<Object, CompletableSource>() {
            @Override
            public CompletableSource apply(Object t) throws Exception {
                return Completable.complete();
            }
        }));
}
 
Example 3
Source File: LifecycleTransformer.java    From Tangram-Android with MIT License 5 votes vote down vote up
@Override
public CompletableSource apply(Completable upstream) {
    return Completable.ambArray(upstream, mObservable.flatMapCompletable(
        new Function<Object, CompletableSource>() {
            @Override
            public CompletableSource apply(Object t) throws Exception {
                return Completable.complete();
            }
        }));
}
 
Example 4
Source File: RxLifecycleTransformer.java    From pandroid with Apache License 2.0 5 votes vote down vote up
/**
 * TakeUntil n'existe pas sur un completable. Amb permet de la premère émission
 *
 * @param upstream
 * @return
 */
@Override
public CompletableSource apply(Completable upstream) {
    return Completable.ambArray(upstream, mObservable.flatMapCompletable(new Function<Object, CompletableSource>() {
        @Override
        public CompletableSource apply(@NonNull Object o) throws Exception {
            return Completable.error(new CancellationException());
        }
    }));
}
 
Example 5
Source File: LifecycleTransformer.java    From recyclerview-binder with Apache License 2.0 5 votes vote down vote up
@Override
public CompletableSource apply(Completable upstream) {
    return Completable.ambArray(upstream, observable.flatMapCompletable(new Function<Object, Completable>() {
        @Override
        public Completable apply(Object ignore) throws Exception {
            return Completable.error(new CancellationException());
        }
    }));
}