awaitContent

abstract suspend fun awaitContent(untilChangeCount: Int = 1)

Suspends until content is available; either it is already in the view or it is preloaded and a call to bind will immediately show this content.

Parameters

untilChangeCount

the number of changes received to wait for. This is approximately the number of recompositions that had non-empty updates.

Throws

CancellationException

if it's unbound before it returns.