MCPcopy Create free account
hub / github.com/callstack/agent-device / refreshResumableUploadTimer

Function refreshResumableUploadTimer

src/daemon/resumable-upload.ts:181–188  ·  view source on GitHub ↗
(entry: ResumableUploadEntry)

Source from the content-addressed store, hash-verified

179}
180
181function 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
190function cleanupResumableUpload(uploadId: string): void {
191 const entry = RESUMABLE_UPLOADS_BY_ID.get(uploadId);

Callers 2

beginResumableUploadFunction · 0.85

Calls 1

cleanupResumableUploadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…