Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.tasks;
|
||||
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-tasks@@18.1.0 */
|
||||
/* JADX INFO: loaded from: classes2.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(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);
|
||||
}
|
||||
|
||||
/* synthetic */ zzad(zzac zzacVar) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user