Add .throw
and .return
interface methods to StreamToAsyncIterator
#1
Labels
8000
.throw
and .return
interface methods to StreamToAsyncIterator
#1
Generators can also provide methods to implement a return and throw feature to help handle additional syntax operators in a for-of loop.
For example:
This is how it is used within a vanilla generator:
The text was updated successfully, but these errors were encountered: