package o; import com.google.android.gms.tasks.TaskCompletionSource; /* loaded from: classes.dex */ public abstract class BMB implements Runnable { public final TaskCompletionSource c; protected abstract void a(); @Override // java.lang.Runnable public final void run() { try { a(); } catch (Exception e) { TaskCompletionSource taskCompletionSource = this.c; if (taskCompletionSource != null) { taskCompletionSource.trySetException(e); } } } public BMB(TaskCompletionSource taskCompletionSource) { this.c = taskCompletionSource; } /* JADX INFO: Access modifiers changed from: package-private */ public BMB() { this.c = null; } }