MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / waitForDrain

Function waitForDrain

out/cli.cjs:55231–55238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55229 let callback = null;
55230 function onDrain() {
55231 if (callback) {
55232 const cb = callback;
55233 callback = null;
55234 cb();
55235 }
55236 }
55237 const waitForDrain = () => new Promise((resolve, reject) => {
55238 assert2(callback === null);
55239 if (socket[kError]) {
55240 reject(socket[kError]);
55241 } else {

Callers 1

writeIterableFunction · 0.85

Calls 1

rejectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…