(id, state, current, outOf)
| 92 | } |
| 93 | |
| 94 | record(id, state, current, outOf) { |
| 95 | this.total.add(id); |
| 96 | |
| 97 | if (current) this.progress.set(id, [ current, outOf ?? 100 ]); |
| 98 | if (state === 'Complete') this.done.add(id); |
| 99 | |
| 100 | this.send(); |
| 101 | } |
| 102 | |
| 103 | send() { |
| 104 | if ((toSend === -1 && this.progress.size > 0 && this.progress.size > this.done.size) || toSend === this.st) { |
no test coverage detected