awaitNext

suspend fun <T> awaitNext(precondition: (RenderingT) -> Boolean = { true }, map: (RenderingT) -> T, satisfying: T.() -> Boolean = { true }): T(source)

Suspend waiting for the next rendering which satisfies precondition, can successfully be mapped using map and satisfies the satisfying predicate when called on the T rendering after it has been mapped.

Return

the mapped rendering as T