discord-jadx/app/src/main/java/s/a/s1.java
2021-06-27 22:44:35 +02:00

24 lines
828 B
Java

package s.a;
import kotlin.coroutines.CoroutineContext;
/* compiled from: Unconfined.kt */
public final class s1 extends z {
public static final s1 i = new s1();
@Override // s.a.z
public void dispatch(CoroutineContext coroutineContext, Runnable runnable) {
if (((u1) coroutineContext.get(u1.i)) == null) {
throw new UnsupportedOperationException("Dispatchers.Unconfined.dispatch function can only be used by the yield function. If you wrap Unconfined dispatcher in your code, make sure you properly delegate isDispatchNeeded and dispatch calls.");
}
}
@Override // s.a.z
public boolean isDispatchNeeded(CoroutineContext coroutineContext) {
return false;
}
@Override // s.a.z
public String toString() {
return "Dispatchers.Unconfined";
}
}