discord-jadx/app/src/main/java/d0/w/d.java

57 lines
2.0 KiB
Java
Raw Normal View History

2021-11-02 06:38:17 +00:00
package d0.w;
2021-08-03 07:33:18 +00:00
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
2021-08-03 07:33:18 +00:00
import java.util.Objects;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
/* compiled from: ContinuationInterceptor.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-08-03 07:33:18 +00:00
public interface d extends CoroutineContext.Element {
public static final /* synthetic */ int e = 0;
/* compiled from: ContinuationInterceptor.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-08-03 07:33:18 +00:00
public static final class a {
public static <E extends CoroutineContext.Element> E get(d dVar, CoroutineContext.Key<E> key) {
m.checkNotNullParameter(key, "key");
if (key instanceof b) {
b bVar = (b) key;
if (!bVar.isSubKey$kotlin_stdlib(dVar.getKey())) {
return null;
}
E e = (E) bVar.tryCast$kotlin_stdlib(dVar);
if (!(e instanceof CoroutineContext.Element)) {
return null;
}
return e;
}
int i = d.e;
if (b.a != key) {
return null;
}
Objects.requireNonNull(dVar, "null cannot be cast to non-null type E");
return dVar;
}
public static CoroutineContext minusKey(d dVar, CoroutineContext.Key<?> key) {
m.checkNotNullParameter(key, "key");
if (key instanceof b) {
b bVar = (b) key;
2021-12-02 18:53:44 +00:00
return (!bVar.isSubKey$kotlin_stdlib(dVar.getKey()) || bVar.tryCast$kotlin_stdlib(dVar) == null) ? dVar : f.j;
2021-08-03 07:33:18 +00:00
}
int i = d.e;
2021-12-02 18:53:44 +00:00
return b.a == key ? f.j : dVar;
2021-08-03 07:33:18 +00:00
}
}
/* compiled from: ContinuationInterceptor.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-08-03 07:33:18 +00:00
public static final class b implements CoroutineContext.Key<d> {
public static final /* synthetic */ b a = new b();
}
<T> Continuation<T> interceptContinuation(Continuation<? super T> continuation);
void releaseInterceptedContinuation(Continuation<?> continuation);
}