Optional
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.
false
return
for await...of
break
throw
true Copy
true
When set to
false, callingreturnon the async iterator, or exiting afor await...ofiteration using abreak,return, orthrowwill not destroy the stream.