Search in sources :

Example 1 with SubscriptionArbiter

use of io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter in project RxJava by ReactiveX.

the class FlowableRetryBiPredicate method subscribeActual.

@Override
public void subscribeActual(Subscriber<? super T> s) {
    SubscriptionArbiter sa = new SubscriptionArbiter(false);
    s.onSubscribe(sa);
    RetryBiSubscriber<T> rs = new RetryBiSubscriber<>(s, predicate, sa, source);
    rs.subscribeNext();
}
Also used : SubscriptionArbiter(io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter)

Example 2 with SubscriptionArbiter

use of io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter in project RxJava by ReactiveX.

the class FlowableRepeatUntil method subscribeActual.

@Override
public void subscribeActual(Subscriber<? super T> s) {
    SubscriptionArbiter sa = new SubscriptionArbiter(false);
    s.onSubscribe(sa);
    RepeatSubscriber<T> rs = new RepeatSubscriber<>(s, until, sa, source);
    rs.subscribeNext();
}
Also used : SubscriptionArbiter(io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter)

Example 3 with SubscriptionArbiter

use of io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter in project RxJava by ReactiveX.

the class FlowableRetryPredicate method subscribeActual.

@Override
public void subscribeActual(Subscriber<? super T> s) {
    SubscriptionArbiter sa = new SubscriptionArbiter(false);
    s.onSubscribe(sa);
    RetrySubscriber<T> rs = new RetrySubscriber<>(s, count, predicate, sa, source);
    rs.subscribeNext();
}
Also used : SubscriptionArbiter(io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter)

Example 4 with SubscriptionArbiter

use of io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter in project RxJava by ReactiveX.

the class FlowableRepeat method subscribeActual.

@Override
public void subscribeActual(Subscriber<? super T> s) {
    SubscriptionArbiter sa = new SubscriptionArbiter(false);
    s.onSubscribe(sa);
    RepeatSubscriber<T> rs = new RepeatSubscriber<>(s, count != Long.MAX_VALUE ? count - 1 : Long.MAX_VALUE, sa, source);
    rs.subscribeNext();
}
Also used : SubscriptionArbiter(io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter)

Aggregations

SubscriptionArbiter (io.reactivex.rxjava3.internal.subscriptions.SubscriptionArbiter)4