MCPcopy Index your code
hub / github.com/nodejs/node / _final

Method _final

lib/internal/http2/core.js:2352–2363  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

2350 }
2351
2352 _final(cb) {
2353 if (this.pending) {
2354 this.once('ready', () => this._final(cb));
2355 return;
2356 }
2357 debugStreamObj(this, 'shutting down writable on _final');
2358 shutdownWritable.call(this, cb);
2359
2360 if (this.session[kType] === NGHTTP2_SESSION_CLIENT && onClientStreamBodySentChannel.hasSubscribers) {
2361 onClientStreamBodySentChannel.publish({ stream: this });
2362 }
2363 }
2364
2365 _read(nread) {
2366 if (this.destroyed) {

Callers

nothing calls this directly

Calls 4

debugStreamObjFunction · 0.85
onceMethod · 0.45
callMethod · 0.45
publishMethod · 0.45

Tested by

no test coverage detected