discord-jadx/app/src/main/java/j0/l/a/k2.java

46 lines
1.2 KiB
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package j0.l.a;
2021-06-27 20:44:35 +00:00
import androidx.recyclerview.widget.RecyclerView;
2021-06-27 20:44:35 +00:00
import java.util.Objects;
import rx.Subscriber;
2022-03-02 20:59:20 +00:00
/* compiled from: OperatorThrottleFirst.java */
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public class k2 extends Subscriber<T> {
2021-12-17 22:03:14 +00:00
public long j = -1;
public final /* synthetic */ Subscriber k;
public final /* synthetic */ l2 l;
2021-06-27 20:44:35 +00:00
2022-03-02 20:59:20 +00:00
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
2021-06-27 20:44:35 +00:00
public k2(l2 l2Var, Subscriber subscriber, Subscriber subscriber2) {
super(subscriber);
2021-12-17 22:03:14 +00:00
this.l = l2Var;
this.k = subscriber2;
2021-06-27 20:44:35 +00:00
}
2021-11-08 18:25:28 +00:00
@Override // j0.g
2021-06-27 20:44:35 +00:00
public void onCompleted() {
2021-12-17 22:03:14 +00:00
this.k.onCompleted();
2021-06-27 20:44:35 +00:00
}
2021-11-08 18:25:28 +00:00
@Override // j0.g
2021-06-27 20:44:35 +00:00
public void onError(Throwable th) {
2021-12-17 22:03:14 +00:00
this.k.onError(th);
2021-06-27 20:44:35 +00:00
}
2021-11-08 18:25:28 +00:00
@Override // j0.g
2021-06-27 20:44:35 +00:00
public void onNext(T t) {
2021-12-17 22:03:14 +00:00
Objects.requireNonNull(this.l.k);
2021-06-27 20:44:35 +00:00
long currentTimeMillis = System.currentTimeMillis();
2021-12-17 22:03:14 +00:00
long j = this.j;
if (j == -1 || currentTimeMillis < j || currentTimeMillis - j >= this.l.j) {
this.j = currentTimeMillis;
this.k.onNext(t);
2021-06-27 20:44:35 +00:00
}
}
@Override // rx.Subscriber
public void onStart() {
request(RecyclerView.FOREVER_NS);
2021-06-27 20:44:35 +00:00
}
}