README: [keylock] a bit more clear doc for "cancel" argument

This commit is contained in:
Eugene K 2020-03-19 17:55:01 +00:00 committed by Fedor Korotkiy
parent 6ed75536af
commit 1a31a226cb

View file

@ -11,7 +11,7 @@ type KeyLock interface {
// Upon successful completion, function guarantees that no other call with intersecting set of keys // Upon successful completion, function guarantees that no other call with intersecting set of keys
// will finish, until unlock() is called. // will finish, until unlock() is called.
// //
// If cancel channel is closed, function returns immediately. // If cancel channel is closed, function stops trying to lock received keys and returns immediately
LockKeys(keys []string, cancel <-chan struct{}) (canceled bool, unlock func()) LockKeys(keys []string, cancel <-chan struct{}) (canceled bool, unlock func())
} }
``` ```