withMosaic

suspend fun <R> withMosaic(block: suspend TestMosaic.() -> R): R(source)

Executes block with a fresh cache and a snapshot of this builder's configuration. Inherits the calling coroutine's Job, dispatcher, scheduler, and other context elements. Every exit cancels unfinished producers and waits for their attached children to clean up. Supplied Canvas sources are borrowed: they remain owned by the caller and are never closed. Configure this builder from one coroutine at a time; later changes affect only later executions.