|
|
|
|
|
by bigstrat2003
23 days ago
|
|
Performance aside (which I would argue is premature optimization, as most programs will not feel the theoretical overhead of threads), async is a bad approach for developer ergonomics. Threads are so much easier to work with and reason about than async. There are reasons to use async (like if you're in the rare case when thread overhead is noticeable), but developer ergonomics are absolutely not a reason. |
|
one, two = await asyncio.gather(callOne(), callTwo())
?