(chunk, options)
| 565 | } |
| 566 | |
| 567 | write(chunk, options) { |
| 568 | if (!options?.signal && this.#queue.canWriteSync()) { |
| 569 | const bytes = toUint8Array(chunk); |
| 570 | this.#queue.writeSync([bytes]); |
| 571 | return kResolvedPromise; |
| 572 | } |
| 573 | const bytes = toUint8Array(chunk); |
| 574 | return this.#queue.writeAsync([bytes], options?.signal); |
| 575 | } |
| 576 | |
| 577 | writev(chunks, options) { |
| 578 | if (!ArrayIsArray(chunks)) { |
no test coverage detected