mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package com.google.android.gms.tasks;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import java.util.concurrent.CountDownLatch;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
final class zzad<T> implements zzae<T> {
|
|
private final CountDownLatch zza = new CountDownLatch(1);
|
|
|
|
private zzad() {
|
|
}
|
|
|
|
@Override // com.google.android.gms.tasks.OnCanceledListener
|
|
public final void onCanceled() {
|
|
this.zza.countDown();
|
|
}
|
|
|
|
@Override // com.google.android.gms.tasks.OnFailureListener
|
|
public final void onFailure(@NonNull Exception exc) {
|
|
this.zza.countDown();
|
|
}
|
|
|
|
@Override // com.google.android.gms.tasks.OnSuccessListener
|
|
public final void onSuccess(T t) {
|
|
this.zza.countDown();
|
|
}
|
|
|
|
public final void zza() throws InterruptedException {
|
|
this.zza.await();
|
|
}
|
|
|
|
public final boolean zzb(long j, TimeUnit timeUnit) throws InterruptedException {
|
|
return this.zza.await(j, timeUnit);
|
|
}
|
|
|
|
public /* synthetic */ zzad(zzac zzacVar) {
|
|
}
|
|
}
|