mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 19:07:17 +01:00
33 lines
1.2 KiB
Java
33 lines
1.2 KiB
Java
package io.reactivex.rxjava3.internal.observers;
|
|
|
|
import io.reactivex.rxjava3.core.SingleObserver;
|
|
import io.reactivex.rxjava3.disposables.Disposable;
|
|
import io.reactivex.rxjava3.internal.disposables.DisposableHelper;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes10.dex */
|
|
public final class ResumeSingleObserver<T> implements SingleObserver<T> {
|
|
final SingleObserver<? super T> downstream;
|
|
final AtomicReference<Disposable> parent;
|
|
|
|
public ResumeSingleObserver(AtomicReference<Disposable> atomicReference, SingleObserver<? super T> singleObserver) {
|
|
this.parent = atomicReference;
|
|
this.downstream = singleObserver;
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.core.SingleObserver
|
|
public void onError(Throwable th) {
|
|
this.downstream.onError(th);
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.core.SingleObserver
|
|
public void onSubscribe(Disposable disposable) {
|
|
DisposableHelper.replace(this.parent, disposable);
|
|
}
|
|
|
|
@Override // io.reactivex.rxjava3.core.SingleObserver
|
|
public void onSuccess(T t) {
|
|
this.downstream.onSuccess(t);
|
|
}
|
|
}
|