PdestroyOnReturn
Bun

property

stream.default.ReadableIteratorOptions.destroyOnReturn

destroyOnReturn?: boolean

When set to false, calling return on the async iterator, or exiting a for await...of iteration using a break, return, or throw will not destroy the stream.