commitOptimisticUpdate

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

Commits optimistic update for a given key. Child replica forgets previous data.

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