commitSuspending

suspend fun commitSuspending(): Deferred<Unit>

Runs a data update. Unlike commit, this function suspends the current coroutine and waits until an update can be run, meaning the update cannot be rejected. The returned Deferred implementation is marked as completed once the update has been processed.