You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, as far as I know, there should be a writer.end() in code using Bun.file once it doesn't need to use the file descriptor. The new using keyword reduces the need for this by automatically calling a function once the variable is out of scope, making code cleaner.
What is the feature you are proposing to solve the problem?
I propose making Bun.file().writer compatible with this new feature.
constfile=Bun.file("./example.txt");{usingwriter=file.writer();writer.write("Hi!");}// Automatically removes the file descriptor
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
Currently, as far as I know, there should be a
writer.end()
in code usingBun.file
once it doesn't need to use the file descriptor. The newusing
keyword reduces the need for this by automatically calling a function once the variable is out of scope, making code cleaner.What is the feature you are proposing to solve the problem?
I propose making
Bun.file().writer
compatible with this new feature.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: