MCPcopy Create free account
hub / github.com/sindresorhus/execa / initializeConcurrentStreams

Function initializeConcurrentStreams

lib/convert/concurrent.js:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3// When using multiple `.readable()`/`.writable()`/`.duplex()`, `final` and `destroy` should wait for other streams
4export const initializeConcurrentStreams = () => ({
5 readableDestroy: new WeakMap(),
6 writableFinal: new WeakMap(),
7 writableDestroy: new WeakMap(),
8});
9
10// Each file descriptor + `waitName` has its own array of promises.
11// Each promise is a single `.readable()`/`.writable()`/`.duplex()` call.

Callers 2

forwardReadableMethodsFunction · 0.90
addConvertedStreamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected