fs, stream: add initial Symbol.dispose and Symbol.asyncDispose support - #48518
Conversation
|
Review requested:
|
ronag
left a comment
There was a problem hiding this comment.
Q: Does await using fallback to Symbol.dispose if the async version doesn't exist?
Co-authored-by: Benjamin Gruenbaum <benjamingr@gmail.com>
according to this it does: |
ronag
left a comment
There was a problem hiding this comment.
Implement for stream.Writable as well?
Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: Robert Nagy <ronagy@icloud.com>
Yeah, and for a lot of other things (http.Server etc), the idea here was to add the symbols and one example so we can distribute the work like we did last year with iterator-helpers. |
Co-authored-by: Robert Nagy <ronagy@icloud.com>
Co-authored-by: Robert Nagy <ronagy@icloud.com>
|
This commit does not land cleanly on |
Both TypeScript and Bable already support
using(explicit resource management proposal),adding this to node will be convenient
Co-authored-by: Benjamin Gruenbaum benjamingr@gmail.com