MCPcopy Create free account
hub / github.com/nodejs/node / #canUseWriteFastPath

Method #canUseWriteFastPath

lib/internal/streams/iter/broadcast.js:528–531  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

526 }
527
528 #canUseWriteFastPath(options) {
529 return !options?.signal && !this.#isClosed() && !this.#aborted &&
530 this.#broadcast[kCanWrite]();
531 }
532
533 write(chunk, options) {
534 // Fast path: no signal, writer open, buffer has space

Callers 2

writeMethod · 0.95
writevMethod · 0.95

Calls 1

#isClosedMethod · 0.95

Tested by

no test coverage detected