()
| 107 | |
| 108 | // Writev async path |
| 109 | async function testWritevAsync() { |
| 110 | const { writer, broadcast: bc } = broadcast({ highWaterMark: 10 }); |
| 111 | const consumer = bc.push(); |
| 112 | |
| 113 | await writer.writev(['hello', ' ', 'world']); |
| 114 | await writer.end(); |
| 115 | |
| 116 | const data = await text(consumer); |
| 117 | assert.strictEqual(data, 'hello world'); |
| 118 | } |
| 119 | |
| 120 | // endSync returns the total byte count |
| 121 | async function testEndSyncReturnValue() { |