batchUpdateAsync

abstract suspend fun batchUpdateAsync(block: suspend MC.() -> Unit)

Executes a suspending block of modifications on the underlying mutable collection and notifies observers only once after the block has completed.

This is the asynchronous equivalent of batchUpdate, suitable for operations that involve coroutines or other suspending functions.

Parameters

block

A suspending lambda function with the mutable collection as its receiver.