package com.google.android.gms.tasks; /* loaded from: classes.dex */ public class TaskCompletionSource { 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 getTask() { return this.zza; } public TaskCompletionSource() { } }