agorushkin
agorushkin2y ago

Deno.open() question

Does, when the process terminate, deno close the files if they were opened with Deno.open()?
2 Replies
Hexagon
Hexagon2y ago
Always closing is best practise for many reasons. But... if your application crashes (or ends gracefully), the file descriptors will definitely be closed and disconnected from the process. No need to worry about that.
agorushkin
agorushkinOP2y ago
Alright, thank you! Yeah, that was my main concern - I always close my files manially, so I was just wondering what happens if a crash occurs

Did you find this page helpful?