()
| 401 | } |
| 402 | |
| 403 | suspend() { |
| 404 | if (this.status == "suspend") return; |
| 405 | this.status = "suspend"; |
| 406 | this.task.forEach((t) => { |
| 407 | if (!t) return; |
| 408 | if (t.status != "completed") { |
| 409 | t.stop(); |
| 410 | } |
| 411 | }); |
| 412 | this.updateProgress(); |
| 413 | } |
| 414 | |
| 415 | unsuspend() { |
| 416 | if (this.status != "suspend") return; |
no test coverage detected