44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.concurrent.CompletableFuture;
|
||
|
import java.util.concurrent.atomic.AtomicReference;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
abstract class fTC<T> extends CompletableFuture<T> implements InterfaceC13174fSv<T> {
|
||
|
final AtomicReference<fSJ> a = new AtomicReference<>();
|
||
|
T c;
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
EnumC13192fTf.a(this.a, fsj);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
this.c = null;
|
||
|
this.a.lazySet(EnumC13192fTf.DISPOSED);
|
||
|
if (completeExceptionally(th)) {
|
||
|
return;
|
||
|
}
|
||
|
C13418fZu.c(th);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.concurrent.CompletableFuture, java.util.concurrent.Future
|
||
|
public final boolean cancel(boolean z) {
|
||
|
EnumC13192fTf.e(this.a);
|
||
|
return super.cancel(z);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.concurrent.CompletableFuture
|
||
|
public final boolean complete(T t) {
|
||
|
EnumC13192fTf.e(this.a);
|
||
|
return super.complete(t);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.concurrent.CompletableFuture
|
||
|
public final boolean completeExceptionally(Throwable th) {
|
||
|
EnumC13192fTf.e(this.a);
|
||
|
return super.completeExceptionally(th);
|
||
|
}
|
||
|
}
|