()
| 79 | } |
| 80 | |
| 81 | async function testAlreadyAbortedSignal() { |
| 82 | const { broadcast: bc } = broadcast({ signal: AbortSignal.abort() }); |
| 83 | const consumer = bc.push(); |
| 84 | |
| 85 | await assert.rejects(async () => { |
| 86 | // eslint-disable-next-line no-unused-vars |
| 87 | for await (const _ of consumer) { |
| 88 | assert.fail('Should not reach here'); |
| 89 | } |
| 90 | }, { name: 'AbortError' }); |
| 91 | } |
| 92 | |
| 93 | // ============================================================================= |
| 94 | // Broadcast.from() hang fix - cancel while write blocked on backpressure |
no test coverage detected
searching dependent graphs…