Open hajnalandor opened 4 years ago
In gocb package there are 2 methods, GetAndLock and Unlock. GetAndLock locks a document for a period of time, providing exclusive RW access to it,meanwhile Unlock works in the reverse direction.
Yes, I used this GetAndLock in the incrmntr package, but it's strictly related to the #49, becase after you call GetAndLock the only way to release the lock if you use the Cas or without any operation call the Unlock.
Can you tell more details about what you mean?