How to get started using Python8217s asyncio.
Earlier this year I attended PyCon the international Pythonconference. One topic presented at numerous talks and discussedinformally in the hallway was the state of threading in Pythonwhichis in a nutshell neither ideal nor as terrible as some critics wouldargue.
A related topic that came up repeatedly was that of 8220asyncio8221 arelatively new approach to concurrency in Python. Not only were thereformal presentations and informal discussions about asyncio but anumber of people also asked me about courses on the subject.
I must admit I was a bit surprised by all the interest. Afterall asyncio isn8217t a new addition to Python it8217s been around for afew years. And it doesn8217t solve all of the problems associated withthreads. Plus it can be confusing for many people to get started with it.
And yet there8217s no denying that after a number of years whenpeople ignored asyncio it8217s starting to gain steam. I8217m surepart of the reason is that asyncio has matured and improved over timethanks in no small part to much dedicated work by countless developers.But it8217s also because asyncio is an increasingly good and useful choicefor certain types of tasksparticularly tasks that work acrossnetworks.