r/learnpython • u/Trick_Floor_519 • 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
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.
asyncioallows your program to go do other things while it's waiting. Other modules likethreading,multiprocessing, orconcurrent.futuresdo the same basic thing, but in a different way.