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

34 lines
760 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.tasks;
/* loaded from: classes.dex */
public class TaskCompletionSource<TResult> {
private final zzw zza = new zzw();
public TaskCompletionSource(CancellationToken cancellationToken) {
cancellationToken.onCanceledRequested(new zzs(this));
}
public void setException(Exception exc) {
this.zza.zza(exc);
}
public void setResult(TResult tresult) {
this.zza.zzb(tresult);
}
public boolean trySetException(Exception exc) {
return this.zza.zzd(exc);
}
public boolean trySetResult(TResult tresult) {
return this.zza.zze(tresult);
}
public Task<TResult> getTask() {
return this.zza;
}
public TaskCompletionSource() {
}
}