2021-10-15 06:18:26 +00:00
|
|
|
package c0.w;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.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 */
|
|
|
|
public interface d extends CoroutineContext.Element {
|
|
|
|
public static final /* synthetic */ int e = 0;
|
|
|
|
|
|
|
|
/* compiled from: ContinuationInterceptor.kt */
|
|
|
|
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;
|
|
|
|
return (!bVar.isSubKey$kotlin_stdlib(dVar.getKey()) || bVar.tryCast$kotlin_stdlib(dVar) == null) ? dVar : f.i;
|
|
|
|
}
|
|
|
|
int i = d.e;
|
|
|
|
return b.a == key ? f.i : dVar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: ContinuationInterceptor.kt */
|
|
|
|
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);
|
|
|
|
}
|