Python Asynchronous Programming - AsyncIO & Async/Await

preview_player
Показать описание
In today's video, I'll be talking to you about asynchronous programming in python. This Python Async tutorial will cover the 'async' and 'await' keyword, coroutines, futures and tasks, and some basic features from the asyncio module in Python. This video is for intermediate programmers, and it's recommended you have Python 3.7 or above.

📄 Documentation

⭐️ Timestamps ⭐️
01:43 - Synchronous vs Asynchronous
04:30 - Coroutines
07:35 - Async Event-Loop
08:58 - Async/Await Keywords
12:12 - Tasks
17:00 - Async Example

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- Asynchronous programming
- Coroutines
- Futures in Python
- Tasks in Python
- Python tutorial
- Tech With Tim

⭐️ Hashtags ⭐️
#Programming #Asynchronous #TechWithTim
Рекомендации по теме
Комментарии
Автор

A quick story. I started programming 4 years ago at Tim was the first instructor in this vast sea of programming. When I learned the basic I kinda move on and start my own journey. Today in my work I need to use asynchronous programming and of course I knew the place to learn. Tim you are amazing, thank you so much for the knowledge you have given us!

PeterJacobFloratos
Автор

"a programmer had a problem and he thought to solve it with thread.
has problems. two Now he"

yoyoteo
Автор

I literally learnt this through making Discord Bots

ZenshiOff
Автор

It would be great to learn about the differences between acyncio, multiprocessing and threading

TheKiryu.
Автор

Seriously, I don't know what I would do without your tutorials

paccooper
Автор

I came to this video to try and find out what is mean by "asynchronous iterator", and while this isn't exactly that, I think I understand a little better what the "asynchronous" part means. This is an extremely powerful resource, I'm very glad I watched this. I just leveled up in my Python substantially, lol

neonsilver
Автор

Just started with asynchronous programming in python, and this video of yours helps me to get comfortable with the asynchronous concept.
Thank you @tim
(well, I must include, I have a good grasp in the primary concepts of python, then I headed to the asynchronous concept in python)

enamulmajid
Автор

I wanted this for so long thank you so much! :)

kitetm
Автор

Idea for future series: Go through the source code for popular modules and show us how they were created. Would be a great learning experience.

dovids.greenberger
Автор

asyncio is pretty useful when you're coding server's responses etc. While one request is being processed, the other one begins.

future
Автор

Oh, man. I needed this. I watched lots of videos but none of them were as good and simple-explained as yours.

nogamenolife
Автор

Great stuff! I've been reading up on this for a few days now and your breakdown has been the clearest explanation. Thank you.

kraused
Автор

I'm about a month into learning Python. That was a great explanation and gives me a foundation to dig deeper. It shows me how I can have multiple things happening at the same time, and the concept of futures really is exciting; in that I can see how the idea in my mind can actually be built.

carewen
Автор

One of the best videos to get started with asyncio!

ansh
Автор

I learned asynchronous programming on hard mode, means that when I started my first asyncio project (discord bot) I knew nothing about it, and barely a beginner in programming world and python In general i struggled days even for simple stuff, though this made me really learn not just scrolling through videos and remember nothing after over one year of working at my project ( which is alive even now, because I'm always performing maintenance checks on my bot) I still feel like I have a lot to learn even if I'm able to write a generous amount of code without "cheating" (searching for answers or something)

Great video for people who want to dive more deeper about asynchronous code

Kaeribana
Автор

This is an absolutely spendid demonstration of asyncio, I needed to use it today and had no clue how to go about it, now I'm off to testing my understanding on my product. Thanks Tim.

phreakyphoenix
Автор

Was looking for such video for months now. No recent clearly explained videos on this topic out there until now. Thanks!

Glaszg
Автор

I had trouble understanding from other videos so I searched "Async Await Tech With Tim". Now it is much clearer. Thank you.

qwe-xqne
Автор

12:58 There is a chance that could fail. asyncio only holds weak references to the tasks it creates; it relies on the caller (you) to maintain strong references, to stop those tasks from disappearing randomly. Here it executes after the “task” variable holding the reference has gone.

lawrencedoliveiro
Автор

I am used to code in Dart while making apps in Flutter. async and await are used very often in it, I have good understanding of asynchronous programming because of it.

rutvikrana