15 ms·
It reminds me of some Python threading monstrosity a guy wrote at my first job. He said something like "this is my own take at async".
by mkl95 4y ago
It reminds me of some Python threading monstrosity a guy wrote at my first job. He said something like "this is my own take at async".
- ptx 4y agoTo be fair to that guy, the Python standard library provides a multitude of incompatible takes at async already, none of which covers all common use cases. The newest take (asyncio) doesn't integrate with external event loops, so unlike similar libraries in C# and Kotlin, it doesn't work with GUI libraries, not even the one in the standard library (tkinter). The third-party asyncio alternative Trio, on the other hand, has recently added "guest mode" [1] to plug in external event loops, so maybe that will become the one true way to do async. [1] https://trio.readthedocs.io/en/stable/reference-lowlevel.html#what-is-guest-mode https://trio.readthedocs.io/en/stable/reference-lowlevel.htm...