Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ onServerClose
Method
onServerClose
packages/next/src/server/next-server.ts:2144–2146 ·
view source on GitHub ↗
(listener: () => Promise<void>)
Source
from the content-addressed store, hash-verified
2142
}
2143
2144
protected onServerClose(listener: () => Promise<void>) {
2145
this.cleanupListeners.add(listener)
2146
}
2147
2148
async
close(): Promise<void> {
2149
await
this.cleanupListeners.runAll()
Callers
nothing calls this directly
Calls
1
add
Method · 0.45
Tested by
no test coverage detected