isOnRenderingThread

fun CoroutineScope.isOnRenderingThread(): Boolean

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