kite-core / jp.co.cyberagent.kite.core / KiteCoroutineDispatchers
KiteCoroutineDispatchers¶
class KiteCoroutineDispatchers
A set of CoroutineDispatcher and will be set into the KiteContext. This allows the coroutine to become testable with providing testable CoroutineDispatcher.
Constructors¶
| Name | Summary |
|---|---|
| <init> | KiteCoroutineDispatchers(default: CoroutineDispatcher = Dispatchers.Default, main: CoroutineDispatcher = Dispatchers.Main, io: CoroutineDispatcher = Dispatchers.IO)A set of CoroutineDispatcher and will be set into the KiteContext. This allows the coroutine to become testable with providing testable CoroutineDispatcher. |
Properties¶
| Name | Summary |
|---|---|
| default | val default: CoroutineDispatcher |
| io | val io: CoroutineDispatcher |
| main | val main: CoroutineDispatcher |
Extension Functions¶
| Name | Summary |
|---|---|
| asKiteContextElement | fun <T :Any>T.asKiteContextElement():Pair<KClass<*>,Any>Creates a KiteContextElement with the KClass |