Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dstack-TEE/dstack
/ safeResolve
Function
safeResolve
sdk/js/src/send-rpc-request.ts:24–29 ·
view source on GitHub ↗
(result: T)
Source
from the content-addressed store, hash-verified
22
}
23
24
const
safeResolve = (result: T) => {
25
if
(!isCompleted) {
26
isCompleted = true
27
resolve(result)
28
}
29
}
30
31
const
timeout = setTimeout(() => {
32
abortController.abort()
Callers
1
send_rpc_request
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected