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
Lock would not be writing to stopChan, the user of the Lock will - and this signature will allow using things like Context's Done channel directly (without mediating it with another select).
The text was updated successfully, but these errors were encountered:
debedb
added a commit
to debedb/libkv
that referenced
this issue
Aug 4, 2017
Lock() of Locker interface should probably take a receive-only channel for stopChan, that is, instead of
Lock(stopChan chan struct{}) (<-chan struct{}, error)
have
Lock(<-stopChan chan struct{}) (<-chan struct{}, error)
Lock would not be writing to stopChan, the user of the Lock will - and this signature will allow using things like Context's Done channel directly (without mediating it with another select).
The text was updated successfully, but these errors were encountered: