MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / done

Function done

tests/e2e/helpers/app-launcher.js:54–59  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

52 let timer = null
53
54 const done = (value) => {
55 if (completed) return
56 completed = true
57 if (timer) clearTimeout(timer)
58 resolve(value)
59 }
60
61 server.on('error', (error) => {
62 safeCloseServer(server)

Callers 3

startInternalServerFunction · 0.85
registerImportRoutesFunction · 0.85

Calls 2

clearTimeoutFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected