Multithreading is not a prerequisite for async in Python. The default task executor runs in a single thread. So using async APIs should be safe as long as you stick to the single-threaded executor.
But for certain use-cases, as mentioned in the article itself, it is unavoidable.
Further, you might be working at a company that has decided to use Python, and you can make Python more efficient and effective using these suggestions.
Multithreading is not a prerequisite for async in Python. The default task executor runs in a single thread. So using async APIs should be safe as long as you stick to the single-threaded executor.
Good point. Have you seen any major advantage of using async API in practice?
But you don't recommend it? (33 points, 38 comments) https://news.ycombinator.com/item?id=43297671
I don't recommend it.
But for certain use-cases, as mentioned in the article itself, it is unavoidable.
Further, you might be working at a company that has decided to use Python, and you can make Python more efficient and effective using these suggestions.