()
| 45 | } |
| 46 | |
| 47 | export async function classicControllerEnqueue () { |
| 48 | const ts = transform((chunk, controller) => { |
| 49 | controller.enqueue(chunk) |
| 50 | controller.enqueue(chunk) |
| 51 | }) |
| 52 | const out = await pipeThrough([encoder.encode('a'), encoder.encode('b')], ts) |
| 53 | eq(decoder.decode(concat(out)), 'aabb') |
| 54 | } |
| 55 | |
| 56 | export async function asyncReturnedValueEnqueued () { |
| 57 | const ts = transform(async (chunk) => chunk % 2 === 0 ? chunk : undefined) |
nothing calls this directly
no test coverage detected