KtxAsync

object KtxAsync : CoroutineScope

Main KTX coroutine scope. Executes tasks on the main rendering thread. See MainDispatcher.

Properties

Link copied to clipboard
open override val coroutineContext: MainDispatcher

Functions

Link copied to clipboard
fun initiate()

Should be invoked on the main rendering thread before using KTX coroutines. Failing to do so will cause some parts of the API to throw exceptions.

Link copied to clipboard
fun CoroutineScope.isOnRenderingThread(): Boolean

Returns true if the coroutine was launched from a rendering thread dispatcher.