Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ stopServer
Function
stopServer
examples/lit/ssr/scripts/dev.mjs:29–33 ·
view source on GitHub ↗
(signal)
Source
from the content-addressed store, hash-verified
27
})
28
29
const
stopServer = (signal) => {
30
if
(server.exitCode === null) {
31
server.kill(signal)
32
}
33
}
34
35
process.on(
'SIGINT'
, () => stopServer(
'SIGINT'
))
36
process.on(
'SIGTERM'
, () => stopServer(
'SIGTERM'
))
Callers
1
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected