MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / stop

Function stop

scripts/perf/node-bench/start_nodefs_socket.mjs:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89 let shuttingDown = false
90 const stop = async () => {
91 if (shuttingDown) {
92 return
93 }
94 shuttingDown = true
95 await server.stop()
96 await db.close()
97 }
98
99 await new Promise((resolve) => {
100 for (const signal of ['SIGINT', 'SIGTERM']) {

Callers 1

mainFunction · 0.85

Calls 2

stopMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected