[Python] Python - How to wait on both queue and a socket on same time

Discussão em 'Python' iniciado por Stack, Janeiro 17, 2025.

  1. Stack

    Stack Membro Participativo

    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

    Continue reading...

Compartilhe esta Página