2 ms·
Also things like unix pipes or network sockets, where the "close" operation means something different as there are multiple parties involved. Arguably the same
by garmaine 7y ago
Also things like unix pipes or network sockets, where the "close" operation means something different as there are multiple parties involved. Arguably the same is true of files as you could be reading a file being simultaneously written to by others.
- dllthomas 7y agoRight. It's easy to handle the simple case, but honestly "let the GC close it" works fine in the simplest cases.