Package net.pdevita.creeperheal2.utils
Class AsyncCoroutineDispatcher
-
- All Implemented Interfaces:
-
kotlin.coroutines.ContinuationInterceptor
,kotlin.coroutines.CoroutineContext
,kotlin.coroutines.CoroutineContext.Element
public final class AsyncCoroutineDispatcher extends CoroutineDispatcher
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContext.Key<?>
key
-
Constructor Summary
Constructors Constructor Description AsyncCoroutineDispatcher(Plugin plugin)
-
Method Summary
Modifier and Type Method Description Unit
dispatch(CoroutineContext context, Runnable block)
Handles dispatching the coroutine on the correct thread. -
Methods inherited from class kotlin.coroutines.AbstractCoroutineContextElement
getKey
-
Methods inherited from class kotlinx.coroutines.CoroutineDispatcher
dispatchYield, interceptContinuation, isDispatchNeeded, limitedParallelism, plus, releaseInterceptedContinuation, toString
-
Methods inherited from class kotlin.coroutines.CoroutineContext.Element
fold, get, minusKey
-
Methods inherited from class kotlin.coroutines.CoroutineContext
plus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
dispatch
Unit dispatch(CoroutineContext context, Runnable block)
Handles dispatching the coroutine on the correct thread.
-
-
-
-