MCPcopy Create free account
hub / github.com/fastify/fastify / errEventHandler

Function errEventHandler

lib/server.js:282–286  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

280 const { promise, resolve, reject } = PonyPromise.withResolvers()
281
282 const errEventHandler = (err) => {
283 cleanup()
284 this[kState].listening = false
285 reject(err)
286 }
287 const listeningEventHandler = () => {
288 cleanup()
289 this[kState].listening = true

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.70

Tested by

no test coverage detected