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
The passed in `Locker` will be called immediately if no need to wait, or right before wait(`runtime_Semacquire`).
This can be useful when some resources can be released before wait, e.g, when `Add/Wait` are synchronised by RWMutex,
where `Add` only happens while holding `RLock` and `Wait` only happens while holding `Lock`.
Here's a concrete example:
https://github.com/zhiqiangxu/util/blob/master/closer/state.go#L58Fixed#36349
0 commit comments