commitOptimisticUpdate

abstract suspend fun commitOptimisticUpdate(update: OptimisticUpdate<T>)

Commits optimistic update. Replica forgets previous data.

Note: for simple cases it is better to use withOptimisticUpdate helper function.