toggle menu
RaceAssist
1.0-SNAPSHOT
jvm
switch theme
search in API
RaceAssist
/
dev.nikomaru.raceassist.utils.coroutines
/
MinecraftCoroutineDispatcher
Minecraft
Coroutine
Dispatcher
class
MinecraftCoroutineDispatcher
(
plugin
:
Plugin
)
:
CoroutineDispatcher
Members
Constructors
Minecraft
Coroutine
Dispatcher
Link copied to clipboard
constructor
(
plugin
:
Plugin
)
Properties
key
Link copied to clipboard
open
override
val
key
:
CoroutineContext.Key
<
*
>
Functions
dispatch
Link copied to clipboard
open
override
fun
dispatch
(
context
:
CoroutineContext
,
block
:
Runnable
)
Handles dispatching the coroutine on the correct thread.
dispatch
Yield
Link copied to clipboard
open
fun
dispatchYield
(
context
:
CoroutineContext
,
block
:
Runnable
)
fold
Link copied to clipboard
open
override
fun
<
R
>
fold
(
initial
:
R
,
operation
:
(
R
,
CoroutineContext.Element
)
->
R
)
:
R
get
Link copied to clipboard
open
operator override
fun
<
E
:
CoroutineContext.Element
>
get
(
key
:
CoroutineContext.Key
<
E
>
)
:
E
?
intercept
Continuation
Link copied to clipboard
override
fun
<
T
>
interceptContinuation
(
continuation
:
Continuation
<
T
>
)
:
Continuation
<
T
>
is
Dispatch
Needed
Link copied to clipboard
open
fun
isDispatchNeeded
(
context
:
CoroutineContext
)
:
Boolean
limited
Parallelism
Link copied to clipboard
open
fun
limitedParallelism
(
parallelism
:
Int
)
:
CoroutineDispatcher
minus
Key
Link copied to clipboard
open
override
fun
minusKey
(
key
:
CoroutineContext.Key
<
*
>
)
:
CoroutineContext
plus
Link copied to clipboard
open
operator
fun
plus
(
context
:
CoroutineContext
)
:
CoroutineContext
operator
fun
plus
(
other
:
CoroutineDispatcher
)
:
CoroutineDispatcher
release
Intercepted
Continuation
Link copied to clipboard
override
fun
releaseInterceptedContinuation
(
continuation
:
Continuation
<
*
>
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String