what-the-bank/sources/com/google/android/gms/tasks/zzad.java

41 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.tasks;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public 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(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);
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzad(zzac zzacVar) {
}
}