withConcurrencyControl abstract method
Future<void>
withConcurrencyControl([
- ConcurrencyControl concurrencyControl = .lastWriteWins
override
Saves the document to the database, resolving conflicts through ConcurrencyControl.
When write operations are executed concurrently, the last writer will win by default.
To fail on conflict instead, pass ConcurrencyControl.failOnConflict to
concurrencyControl. In this case, a DatabaseException with
DatabaseErrorCode.conflict is thrown if there is a conflict.
Implementation
@override
Future<void> withConcurrencyControl([
ConcurrencyControl concurrencyControl = .lastWriteWins,
]);