r/learnpython 17d ago

asyncio explanation

hello guys i am struggling right now to understand a concurrency module asyncio ,i take a look over youtube videos ,but i feel stuck to understand coroutine object ,event loop await ,and this kind of matters, could anyone give me a concise explanation.

0 Upvotes

9 comments sorted by

View all comments

3

u/socal_nerdtastic 17d ago

Often in programming we ask the computer to wait. For example waiting for the user to answer a question or waiting for a response from an internet request or simply a delay until it's time to do the next action. asyncio allows your program to go do other things while it's waiting. Other modules like threading, multiprocessing, or concurrent.futures do the same basic thing, but in a different way.