MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / cleanup

Function cleanup

sdk/js/src/send-rpc-request.ts:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }, timeoutMs || 30_000) // Default 30 seconds timeout
35
36 const cleanup = () => {
37 clearTimeout(timeout)
38 abortController.signal.removeEventListener('abort', onAbort)
39 }
40
41 const onAbort = () => {
42 cleanup()

Callers 2

onAbortFunction · 0.85
send_rpc_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected