MCPcopy Create free account
hub / github.com/cogentcore/core / RunUpdaters

Method RunUpdaters

tree/plan.go:118–124  ·  view source on GitHub ↗

RunUpdaters runs the [NodeBase.Updaters] in sequential descending (reverse) order. It is called in [cogentcore.org/core/core.WidgetBase.UpdateWidget] and other places such as in xyz to update the node.

()

Source from the content-addressed store, hash-verified

116// It is called in [cogentcore.org/core/core.WidgetBase.UpdateWidget] and other places
117// such as in xyz to update the node.
118func (nb *NodeBase) RunUpdaters() {
119 nb.Updaters.Do(func(updaters []func()) {
120 for i := len(updaters) - 1; i >= 0; i-- {
121 updaters[i]()
122 }
123 })
124}
125
126// Add adds a new [PlanItem] to the given [Plan] for a [Node] with
127// the given function to initialize the node. The node is

Callers 1

UpdateWidgetMethod · 0.80

Calls 1

DoMethod · 0.45

Tested by

no test coverage detected