package c.d.a.a; import c.i.a.f.h.n.a; import java.util.concurrent.Future; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public final /* synthetic */ class a0 implements Runnable { public final /* synthetic */ Future i; public final /* synthetic */ Runnable j; public /* synthetic */ a0(Future future, Runnable runnable) { this.i = future; this.j = runnable; } @Override // java.lang.Runnable public final void run() { Future future = this.i; Runnable runnable = this.j; if (!future.isDone() && !future.isCancelled()) { future.cancel(true); a.f("BillingClient", "Async task is taking too long, cancel it!"); if (runnable != null) { runnable.run(); } } } }