Async in the Python world I n the current Python ecosystem, packages tend to standardize around AsyncIO , provided in the Python standard library. AsyncIO can sometimes be judged as complex even by well known developers ; this is in part due to the necessity of supporting other older asynchronous projects like twisted or tornado , but it’s also what makes a lots of its power: One event loop to rule them all. Running a single async task requires you to learn about AsyncIO, write a non negligible amount of boilerplate code in order to fetch a single result. This can be especially cumbersome when doing interactive exploration, and likely will keep users from experimenting with AsyncIO code. As Raymond Hettinger would says (slamming hand on podium): “There must be a better way”. How to run a single async task in Python repl without async integration.
Comments
Post a Comment