func()

in unison/mutex.go [92:105]


func (c Mutex) LockContext(context doneContext) error {
	select {
	case <-context.Done():
		return context.Err()
	default:
	}

	select {
	case <-c.ch:
		return nil
	case <-context.Done():
		return context.Err()
	}
}