(entry: ResumableUploadEntry)
| 179 | } |
| 180 | |
| 181 | function refreshResumableUploadTimer(entry: ResumableUploadEntry): void { |
| 182 | clearTimeout(entry.timer); |
| 183 | entry.timer = setTimeout( |
| 184 | () => cleanupResumableUpload(entry.id), |
| 185 | RESUMABLE_UPLOAD_CLEANUP_TIMEOUT_MS, |
| 186 | ); |
| 187 | entry.timer.unref(); |
| 188 | } |
| 189 | |
| 190 | function cleanupResumableUpload(uploadId: string): void { |
| 191 | const entry = RESUMABLE_UPLOADS_BY_ID.get(uploadId); |
no test coverage detected
searching dependent graphs…