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

Function onWriteComplete

lib/internal/webstreams/adapters.js:975–983  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

973 }
974
975 function onWriteComplete(status) {
976 if (status < 0) {
977 const error = new ErrnoException(status, 'write', this.error);
978 this.promise.reject(error);
979 this.controller.error(error);
980 return;
981 }
982 this.promise.resolve();
983 }
984
985 function doWrite(chunk, controller) {
986 const promise = PromiseWithResolvers();

Callers

nothing calls this directly

Calls 3

rejectMethod · 0.80
errorMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…