Python - How to wait on both queue and a socket on same time
Asked 2013-07-05T19:42:17.523
10
I want to read messages from either a Queue.Queue or a TCP socket, whichever comes first.
How can it be achieved without resorting to 2 threads ?
Platform is CPython 2.7.5 on Windows