2021-07-09 21:07:36 +00:00
|
|
|
package kotlinx.coroutines;
|
|
|
|
|
2021-12-21 23:37:30 +00:00
|
|
|
import b.i.a.f.e.o.f;
|
2021-08-09 22:50:01 +00:00
|
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.w.b;
|
|
|
|
import d0.w.d;
|
2021-07-09 21:07:36 +00:00
|
|
|
import java.util.Objects;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.coroutines.CoroutineContext;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
2021-11-08 18:25:28 +00:00
|
|
|
import s.a.a.g;
|
2021-12-17 22:03:14 +00:00
|
|
|
import s.a.a0;
|
|
|
|
import s.a.l;
|
2021-07-09 21:07:36 +00:00
|
|
|
/* compiled from: CoroutineDispatcher.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-11-08 18:25:28 +00:00
|
|
|
public abstract class CoroutineDispatcher extends d0.w.a implements d {
|
2021-07-09 21:07:36 +00:00
|
|
|
public static final a Key = new a(null);
|
|
|
|
|
|
|
|
/* compiled from: CoroutineDispatcher.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-07-09 21:07:36 +00:00
|
|
|
public static final class a extends b<d, CoroutineDispatcher> {
|
2022-03-02 20:59:20 +00:00
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
2021-07-09 21:07:36 +00:00
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
2021-12-17 22:03:14 +00:00
|
|
|
super(d.b.a, a0.j);
|
2021-07-09 21:07:36 +00:00
|
|
|
int i = d.e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public CoroutineDispatcher() {
|
|
|
|
super(d.b.a);
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void dispatch(CoroutineContext coroutineContext, Runnable runnable);
|
|
|
|
|
|
|
|
public void dispatchYield(CoroutineContext coroutineContext, Runnable runnable) {
|
|
|
|
dispatch(coroutineContext, runnable);
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.a, kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext
|
2021-07-09 21:07:36 +00:00
|
|
|
public <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key) {
|
|
|
|
return (E) d.a.get(this, key);
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.d
|
2021-07-09 21:07:36 +00:00
|
|
|
public final <T> Continuation<T> interceptContinuation(Continuation<? super T> continuation) {
|
|
|
|
return new g(this, continuation);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isDispatchNeeded(CoroutineContext coroutineContext) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.a, kotlin.coroutines.CoroutineContext
|
2021-07-09 21:07:36 +00:00
|
|
|
public CoroutineContext minusKey(CoroutineContext.Key<?> key) {
|
|
|
|
return d.a.minusKey(this, key);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final CoroutineDispatcher plus(CoroutineDispatcher coroutineDispatcher) {
|
|
|
|
return coroutineDispatcher;
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.d
|
2021-07-09 21:07:36 +00:00
|
|
|
public void releaseInterceptedContinuation(Continuation<?> continuation) {
|
|
|
|
Objects.requireNonNull(continuation, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation<*>");
|
|
|
|
Object obj = ((g) continuation)._reusableCancellableContinuation;
|
2021-12-17 22:03:14 +00:00
|
|
|
if (!(obj instanceof l)) {
|
2021-07-09 21:07:36 +00:00
|
|
|
obj = null;
|
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
l lVar = (l) obj;
|
|
|
|
if (lVar != null) {
|
|
|
|
lVar.q();
|
2021-07-09 21:07:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2022-01-27 00:50:41 +00:00
|
|
|
return getClass().getSimpleName() + MentionUtilsKt.MENTIONS_CHAR + f.l0(this);
|
2021-07-09 21:07:36 +00:00
|
|
|
}
|
|
|
|
}
|