MCPcopy Create free account
hub / github.com/github/docs / warmServerWrapper

Function warmServerWrapper

lib/warm-server.js:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54// We only want statistics if the priming needs to occur, so let's wrap the
55// real method and return early [without statistics] whenever possible
56export default async function warmServerWrapper() {
57 // Handle receiving multiple calls to this method from multiple page requests
58 // by holding the in-progress Promise and returning it instead of allowing
59 // the server to actually load all of the files multiple times.
60 if (!promisedWarmServer) {
61 promisedWarmServer = dog.warmServer()
62 }
63 return promisedWarmServer
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected