package g.a;

import f.w.g;
import java.util.concurrent.CancellationException;

/* JADX INFO: compiled from: Job.kt */
/* JADX INFO: loaded from: classes.dex */
public interface n1 extends g.b {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final b f4054e = b.f4055b;

    /* JADX INFO: compiled from: Job.kt */
    public static final class a {
        public static /* synthetic */ void a(n1 n1Var, CancellationException cancellationException, int i2, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: cancel");
            }
            if ((i2 & 1) != 0) {
                cancellationException = null;
            }
            n1Var.o(cancellationException);
        }

        public static <R> R b(n1 n1Var, R r, f.z.c.p<? super R, ? super g.b, ? extends R> pVar) {
            return (R) g.b.a.a(n1Var, r, pVar);
        }

        public static <E extends g.b> E c(n1 n1Var, g.c<E> cVar) {
            return (E) g.b.a.b(n1Var, cVar);
        }

        public static /* synthetic */ y0 d(n1 n1Var, boolean z, boolean z2, f.z.c.l lVar, int i2, Object obj) {
            if (obj != null) {
                throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: invokeOnCompletion");
            }
            if ((i2 & 1) != 0) {
                z = false;
            }
            if ((i2 & 2) != 0) {
                z2 = true;
            }
            return n1Var.m(z, z2, lVar);
        }

        public static f.w.g e(n1 n1Var, g.c<?> cVar) {
            return g.b.a.c(n1Var, cVar);
        }

        public static f.w.g f(n1 n1Var, f.w.g gVar) {
            return g.b.a.d(n1Var, gVar);
        }
    }

    /* JADX INFO: compiled from: Job.kt */
    public static final class b implements g.c<n1> {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        static final /* synthetic */ b f4055b = new b();

        private b() {
        }
    }

    boolean isActive();

    y0 m(boolean z, boolean z2, f.z.c.l<? super Throwable, f.t> lVar);

    CancellationException n();

    void o(CancellationException cancellationException);

    boolean start();

    o u(q qVar);
}
