package tp;

import java.util.concurrent.Future;

/* loaded from: classes3.dex */
final class l extends m {

    /* renamed from: p, reason: collision with root package name */
    private final Future f36563p;

    public l(Future future) {
        this.f36563p = future;
    }

    @Override // tp.n
    public void a(Throwable th2) {
        if (th2 != null) {
            this.f36563p.cancel(false);
        }
    }

    @Override // dn.l
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        a((Throwable) obj);
        return rm.n0.f34904a;
    }

    public String toString() {
        return "CancelFutureOnCancel[" + this.f36563p + ']';
    }
}
