()
| 57 | } |
| 58 | |
| 59 | async exit() { |
| 60 | for (const [key, writer] of this.uploads.entries()) { |
| 61 | try { |
| 62 | await writer.stop(); |
| 63 | this.uploads.delete(key); |
| 64 | } catch (e) { |
| 65 | console.error(`Failed to stop upload writer for key ${key}:`, e); |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | const uploadManager = new UploadManager(); |
no test coverage detected