MCPcopy
hub / github.com/lxn/walk / init

Method init

condition.go:74–83  ·  view source on GitHub ↗
(items []Condition)

Source from the content-addressed store, hash-verified

72}
73
74func (cc *compositeCondition) init(items []Condition) {
75 cc.items = append(cc.items, items...)
76
77 for _, item := range items {
78 handle := item.Changed().Attach(func() {
79 cc.changedPublisher.Publish()
80 })
81 cc.itemsChangedHandles = append(cc.itemsChangedHandles, handle)
82 }
83}
84
85func (cc *compositeCondition) satisfied(all bool) bool {
86 for _, item := range cc.items {

Callers 2

NewAllConditionFunction · 0.45
NewAnyConditionFunction · 0.45

Calls 3

ChangedMethod · 0.65
AttachMethod · 0.45
PublishMethod · 0.45

Tested by

no test coverage detected