MCPcopy
hub / github.com/meteor/meteor / notifyState

Method notifyState

tools/console/progress.ts:158–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156
157 // Notifies watchers & parents
158 private notifyState() {
159 if (this.parent) {
160 this.parent.reportChildState();
161 }
162
163 if (this.watchers.length) {
164 this.watchers.forEach(watcher => {
165 watcher(this.state);
166 });
167 }
168 }
169
170 // Recomputes state, incorporating children's states
171 private updateTotalState() {

Callers 2

reportProgressMethod · 0.95
reportChildStateMethod · 0.95

Calls 2

reportChildStateMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected