3 ms·
I had a lot of trouble writing and maintaining an asyncio Python codebase. It's still hard to find library support, and there are "function coloring"[1] issues
by jamesmishra 6y ago
I had a lot of trouble writing and maintaining an asyncio Python codebase. It's still hard to find library support, and there are "function coloring"[1] issues that tend to make asyncio usage spread.
So I started using multiprocessing and multithreading available via concurrent.futures. I built a wrapper package called `ori`[2] that lets you build chains of threadpools and processpools without having to enter the Python asyncio kingdom.
[1]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...
[2]: https://ori.technology.neocrym.com/en/latest/ori.poolchain/#module-ori.poolchain https://ori.technology.neocrym.com/en/latest/ori.poolchain/#...