beginOptimisticUpdate

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

Begins optimistic update for a given key. Observed data will be transformed by update function immediately.

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