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

Function waitForCurrentWrite

lib/internal/webstreams/readablestream.js:1509–1514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1507 }
1508
1509 async function waitForCurrentWrite() {
1510 const write = state.currentWrite;
1511 await write;
1512 if (write !== state.currentWrite)
1513 await waitForCurrentWrite();
1514 }
1515
1516 function shutdownWithAnAction(action, rejected, originalError) {
1517 if (shuttingDown) return;

Callers 2

shutdownWithAnActionFunction · 0.85
shutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected