MCPcopy
hub / github.com/fastify/fastify / onDrain

Function onDrain

lib/reply.js:789–795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

787 }
788
789 function onDrain () {
790 if (!waitingDrain || !sourceOpen || res.destroyed) {
791 return
792 }
793 waitingDrain = false
794 reader.read().then(onRead, onReadError)
795 }
796
797 function onReadError (err) {
798 sourceOpen = false

Callers

nothing calls this directly

Calls 1

thenMethod · 0.80

Tested by

no test coverage detected