* Processes the provided error callback. * @param {ErrorCallback=} callback signals when the build has completed again * @returns {void}
(callback)
| 30 | * @returns {void} |
| 31 | */ |
| 32 | invalidate(callback) { |
| 33 | if (callback) { |
| 34 | asyncLib.each( |
| 35 | this.watchings, |
| 36 | (watching, callback) => watching.invalidate(callback), |
| 37 | (err) => { |
| 38 | callback(/** @type {Error | null} */ (err)); |
| 39 | } |
| 40 | ); |
| 41 | } else { |
| 42 | for (const watching of this.watchings) { |
| 43 | watching.invalidate(); |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | suspend() { |
| 49 | for (const watching of this.watchings) { |
nothing calls this directly
no test coverage detected