From 1a31a226cb16c94bd037a2938afe9db8cb274ce3 Mon Sep 17 00:00:00 2001 From: Eugene K Date: Thu, 19 Mar 2020 17:55:01 +0000 Subject: [PATCH] README: [keylock] a bit more clear doc for "cancel" argument --- keylock/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keylock/README.md b/keylock/README.md index e62e844..552d7a8 100644 --- a/keylock/README.md +++ b/keylock/README.md @@ -11,7 +11,7 @@ type KeyLock interface { // Upon successful completion, function guarantees that no other call with intersecting set of keys // 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()) } ```