MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / rejectAllPending

Function rejectAllPending

apps/desktop/main/worker/workerManager.ts:50–56  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

48}
49
50function rejectAllPending(error: Error): void {
51 for (const [id, pending] of pendingRequests.entries()) {
52 clearTimeout(pending.timeout)
53 pending.reject(error)
54 pendingRequests.delete(id)
55 }
56}
57
58function hasNonRestartableRequest(): boolean {
59 for (const pending of pendingRequests.values()) {

Callers 4

initWorkerFunction · 0.85
closeWorkerFunction · 0.85
closeWorkerAsyncFunction · 0.85

Calls 2

clearTimeoutFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected