Skip to content

Commit 0b9308d

Browse files
committed
comment on reliability
1 parent a2699aa commit 0b9308d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/internal/lock/lock.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ type flocker interface {
2828
}
2929

3030
// Lock uses a file lock to coordinate access to resources shared with other processes.
31-
// Callers are responsible for preventing races within a process.
31+
// Callers are responsible for preventing races within a process. Lock applies advisory
32+
// locks on Linux and macOS and is therefore unreliable on these platforms when several
33+
// processes concurrently try to acquire the lock.
3234
type Lock struct {
3335
f flocker
3436
retryDelay time.Duration

0 commit comments

Comments
 (0)