(state: ProgressState)
| 139 | |
| 140 | // Receives a state report indicating progress of self |
| 141 | reportProgress(state: ProgressState) { |
| 142 | this.selfState = state; |
| 143 | |
| 144 | this.updateTotalState(); |
| 145 | |
| 146 | // Nudge the spinner/progress bar, but don't yield (might not be safe to yield) |
| 147 | require('./console.js').Console.nudge(false); |
| 148 | |
| 149 | this.notifyState(); |
| 150 | } |
| 151 | |
| 152 | // Subscribes a watcher to changes |
| 153 | addWatcher(watcher: ProgressWatcher) { |
no test coverage detected