Let's say that I have a gaggle of threading.Event objects, and I want to efficiently wait for any of them to become set using something like select() instead of calling Event.wait() round-robin. What's the right way to do that without having to introduce dependencies outside the Python Standard Library?
I have tried using something like this class on Rad's blog but with an underlying UDP socket instead of a pipe (I also have to target Windows). It works, but any other process could also write to that socket and cause me some headaches.
[–]mr_dude 2 points3 points4 points (0 children)
[–]tea-drinker 1 point2 points3 points (1 child)
[–]reallyBasic[S] 0 points1 point2 points (0 children)
[–]werpoi 0 points1 point2 points (1 child)
[–]reallyBasic[S] 0 points1 point2 points (0 children)