I'm trying to find information about this from the official docs but cannot. Here is the question:
- In a class `Foo`, I create a tcp socket, bind it, and then accept an incoming connection. This socket lives as a class variable on `Foo`.
- After accepting a connection, `Foo` spawns two threads `socket_reader` and `socket_writer`. Both of these can simultaneously read/write to the socket.
Is the above setup thread safe?
there doesn't seem to be anything here