2021-06-27 20:44:35 +00:00
|
|
|
package j0.l.a;
|
|
|
|
|
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
|
import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.Producer;
|
|
|
|
import rx.Scheduler;
|
|
|
|
import rx.Subscriber;
|
|
|
|
import rx.functions.Action0;
|
|
|
|
/* compiled from: OnSubscribeRedo */
|
|
|
|
public class w implements Action0 {
|
|
|
|
public final /* synthetic */ Observable i;
|
|
|
|
public final /* synthetic */ Subscriber j;
|
|
|
|
public final /* synthetic */ AtomicLong k;
|
|
|
|
public final /* synthetic */ Scheduler.Worker l;
|
|
|
|
public final /* synthetic */ Action0 m;
|
|
|
|
public final /* synthetic */ AtomicBoolean n;
|
|
|
|
|
|
|
|
/* compiled from: OnSubscribeRedo */
|
|
|
|
public class a extends Subscriber<Object> {
|
|
|
|
public a(Subscriber subscriber) {
|
|
|
|
super(subscriber);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onCompleted() {
|
|
|
|
w.this.j.onCompleted();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onError(Throwable th) {
|
|
|
|
w.this.j.onError(th);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onNext(Object obj) {
|
|
|
|
if (w.this.j.isUnsubscribed()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (w.this.k.get() > 0) {
|
|
|
|
w wVar = w.this;
|
|
|
|
wVar.l.a(wVar.m);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
w.this.n.compareAndSet(false, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Subscriber
|
|
|
|
public void setProducer(Producer producer) {
|
|
|
|
producer.j(Long.MAX_VALUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public w(y yVar, Observable observable, Subscriber subscriber, AtomicLong atomicLong, Scheduler.Worker worker, Action0 action0, AtomicBoolean atomicBoolean) {
|
|
|
|
this.i = observable;
|
|
|
|
this.j = subscriber;
|
|
|
|
this.k = atomicLong;
|
|
|
|
this.l = worker;
|
|
|
|
this.m = action0;
|
|
|
|
this.n = atomicBoolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.functions.Action0
|
|
|
|
public void call() {
|
2021-07-03 23:36:06 +00:00
|
|
|
this.i.i0(new a(this.j));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|