3 ms·
A file descriptor is nothing but a pointer. It's really just an int. Usually maintained by the OS. Instead of sharing the file descriptor across a goroutine
by bb88 3y ago
A file descriptor is nothing but a pointer. It's really just an int. Usually maintained by the OS.
Instead of sharing the file descriptor across a goroutine (bro, like WTF), let one go routine manage the file descriptor itself.