You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.7.0
- add `New()` function to package for creating a flock file.
- deprecate `NewFlock()` in favor of `New()`
These two changes were contributed by Egon Elbre (@egonelbre) in gofrs#32.
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 gofrs#22.
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+.