package kotlinx.coroutines;

import h.u.g;
import java.util.concurrent.CancellationException;

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

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

    /* JADX INFO: compiled from: Job.kt */
    public static final class a {
        public static /* synthetic */ void a(s1 s1Var, 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;
            }
            s1Var.u(cancellationException);
        }

        public static <R> R b(s1 s1Var, R r, h.x.c.p<? super R, ? super g.b, ? extends R> pVar) {
            return (R) g.b.a.a(s1Var, r, pVar);
        }

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

        public static /* synthetic */ c1 d(s1 s1Var, boolean z, boolean z2, h.x.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 s1Var.r(z, z2, lVar);
        }

        public static h.u.g e(s1 s1Var, g.c<?> cVar) {
            return g.b.a.c(s1Var, cVar);
        }

        public static h.u.g f(s1 s1Var, h.u.g gVar) {
            return g.b.a.d(s1Var, gVar);
        }
    }

    /* JADX INFO: compiled from: Job.kt */
    public static final class b implements g.c<s1> {
        static final /* synthetic */ b b = new b();

        private b() {
        }
    }

    s F(u uVar);

    boolean a();

    boolean isActive();

    c1 r(boolean z, boolean z2, h.x.c.l<? super Throwable, h.r> lVar);

    CancellationException s();

    void u(CancellationException cancellationException);
}
