rollbackOptimisticUpdate

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

Rollbacks optimistic update. Observed data will be replaced to the previous one.

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