Releases: gofrs/flock
Releases · gofrs/flock
0.7.0
0.6.0
0.5.0
This change includes a behavior improvement which should result in this working
across NFS mounts. This is done transparently, and should not require that
consumers change how they use the package. The methodology decided on by
understanding how the flock
utility handles this on Linux.
This improvement was contributed by Dustin Spicuzza (@virtuald) in #22.
0.4.0
0.3.0
0.2.0
Add TryLockContext
method to try and take an exclusive lock, while providing a
retry mechanism with a retry frequency (duration) and a context. This allows you
to retry taking the lock every n
milliseconds, and to use the context to time
out after a period t
seconds if no lock could be obtained.
This version introduces a dependency on Go 1.7+.