Adding synchronous versions of WriteBatch.Commit()
I specifically avoided using Commit as the method name for this synchronous overload to avoid false positives of static code analyzers that would flag it as having an async overload.
IMO, the ideal way to name these two methods would be CommitWithCompletionAsync and Commit. However, since the current method is named CommitAsync, I chose CommitLocal to avoid having it confused as a synchronous overload.
Adding synchronous versions of WriteBatch.Commit()
I specifically avoided using
Commit
as the method name for this synchronous overload to avoid false positives of static code analyzers that would flag it as having an async overload.IMO, the ideal way to name these two methods would be
CommitWithCompletionAsync
andCommit
. However, since the current method is namedCommitAsync,
I choseCommitLocal
to avoid having it confused as a synchronous overload.