Understanding Python’s asyncio

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.

...

Read Full Post

News Link: https://www.linuxjournal.com/content/understanding-pythons-asyncio.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.