discord-jadx/app/src/main/java/s/a/v1.java

26 lines
1010 B
Java

package s.a;
import kotlin.coroutines.CoroutineContext;
import kotlinx.coroutines.CoroutineDispatcher;
/* compiled from: Unconfined.kt */
public final class v1 extends CoroutineDispatcher {
public static final v1 i = new v1();
@Override // kotlinx.coroutines.CoroutineDispatcher
public void dispatch(CoroutineContext coroutineContext, Runnable runnable) {
if (((x1) coroutineContext.get(x1.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 // kotlinx.coroutines.CoroutineDispatcher
public boolean isDispatchNeeded(CoroutineContext coroutineContext) {
return false;
}
@Override // kotlinx.coroutines.CoroutineDispatcher, java.lang.Object
public String toString() {
return "Dispatchers.Unconfined";
}
}