package cond
import "github.com/moby/buildkit/util/cond"
Index ¶
Types ¶
type StatefulCond ¶
type StatefulCond struct {
// contains filtered or unexported fields
}
func NewStatefulCond ¶
func NewStatefulCond(l sync.Locker) *StatefulCond
NewStatefulCond returns a stateful version of sync.Cond . This cond will never block on `Wait()` if `Signal()` has been called after the `Wait()` last returned. This is useful for avoiding to take a lock on `cond.Locker` for signalling.
func (*StatefulCond) Signal ¶
func (s *StatefulCond) Signal()
func (*StatefulCond) Wait ¶
func (s *StatefulCond) Wait()
Source Files ¶
- Version
- v0.8.0-rc2
- Published
- Nov 19, 2020
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 second ago –
Tools for package owners.