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

Function onfinished

lib/internal/streams/duplexify.js:272–281  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

270 let d;
271
272 function onfinished(err) {
273 const cb = onclose;
274 onclose = null;
275
276 if (cb) {
277 cb(err);
278 } else if (err) {
279 d.destroy(err);
280 }
281 }
282
283 // TODO(ronag): Avoid double buffering.
284 // Implement Writable/Readable/Duplex traits.

Callers 1

_duplexifyFunction · 0.70

Calls 2

cbFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…