Allow arbitrary tasks/threads to call close() on sockets whenever they want--even if some other task is using the same socket. https://github.com/agronholm/anyio/issues/14 …
-
-
why can't it work with some sort of reference counting, so threads can safely call close() without having to know if another thread needs it open
-
The problem is calling close(), thinking that it can work as some kind of mechanism for thread cancellation.
-
why in the world would calling a socket method have anything to do with ending a thread? Maybe there are some Python idioms I’m not familiar with yet.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.