pendingMutations

abstract fun pendingMutations(table: String? = null): Flow<List<PendingMutation>>(source)

The current user's writes waiting in the mutation queue, of table or of every table, in the order they will be sent, as the queue changes.

The current user's are the writes made under their session, and those queued with no user recorded that they may take over; never another user's. While the stored session cannot be read, the list is empty. A collection live at close completes, so first() on one that has not emitted yet throws NoSuchElementException (firstOrNull() returns null); collected after close, the flow fails with IllegalStateException.

Return

the flow of lists.

Parameters

table

the table, or null for every table.