sync.Locker
// A Locker represents an object that can be locked and unlocked.
type Locker interface {
Lock()
Unlock()
}
sync.NewCond
// NewCond returns a new Cond with Locker l.
func NewCond(l Locker) *Cond
// A Locker represents an object that can be locked and unlocked.
type Locker interface {
Lock()
Unlock()
}
// NewCond returns a new Cond with Locker l.
func NewCond(l Locker) *Cond