AsyncIO, await, and async - Concurrency in Python
𝙎𝙞𝙜𝙣 𝙪𝙥 𝙛𝙤𝙧 𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝘾𝙤𝙪𝙧𝙨𝙚𝙨: www.socratica.com/collections
𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝙋𝙮𝙩𝙝𝙤𝙣 𝙨𝙝𝙞𝙧𝙩: shop.socratica.com/products/p...
The asyncio module in Python helps you use concurrency in your code. In this lesson, you'll learn about subroutines & coroutines, concurrency vs. parallelism, and how to use the async/await keywords to create a coroutine, and to run a batch of coroutines using convenience functions in the asyncio module.
𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙥𝙡𝙖𝙮𝙡𝙞𝙨𝙩𝙨:
Python: bit.ly/PythonSocratica
SQL: bit.ly/SQL_Socratica
Subscribe to Socratica + bell for notifications:
bit.ly/SocraticaSubscribe
⧓⧓⧓⧓⧓
We recommend:
How to Be a Great Student
ebook: amzn.to/2Lh3XSP
Paperback: amzn.to/3t5jeH3
Kindle Unlimited (read free): amzn.to/3atr8TJ
Python Cookbook, 3rd edition
amzn.to/3jprjX2
More Socratica Python goodies here:
shop.socratica.com/collection...
⧓⧓⧓⧓⧓
Join this channel to get access to perks:
/ @socratica
Support Socratica on Patreon:
/ socratica
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison
Edited by Megi Shuke and Michael Harrison
#python #asyncio #concurrency
Пікірлер: 113
Wow -- the quality of the production, and the level of pedagogy, are both superb.
@mkamp
2 ай бұрын
And the level of absurdly funny turns 😂❤
@mosk53
Ай бұрын
insane
Almost 10 years later, and she hasn't aged a bit. I had realized from the beginning that she wasn't human. 😍 Kindly don't leave us without new episodes. This may not be a series we deserve, but it is a series we definitely need.
@abdessamadao1973
7 ай бұрын
wait ... isn't she a human ?
@MariosMartiopoulos
7 ай бұрын
@@abdessamadao1973 no, she is superhuman.
@robertmanigault625
6 ай бұрын
Actually, she is real. Her name is Ulka Simone Mohanty.
@MariosMartiopoulos
6 ай бұрын
@@robertmanigault625 well, thank you Captain Obvious, now we have two superhumans in this channel. (No offense, just kidding. 🤭)
@abdessamadao1973
6 ай бұрын
@@robertmanigault625 Wow , I didn't know she can program as well
After maining Symmetra for years, I could listen to these videos all day long.
Code examples were very clear, and the explanation of coroutines I think is sometimes glossed over in other tutorials. A similar explanation of multithreading, and the use of thread pools, may be an idea for a future video. Communication between threads and thread debugging can be very tricky.
@jackaubrey8614
7 ай бұрын
"Communication between threads and thread debugging can be very tricky" - that, my friend, is the understatement of the century! :)
For those who enjoy etymology, "sub" and "co" are common latin prefixes that mean "under", "beneath" (subconscious, submarine etc) and "with" (colaborate, correlation etc). At least this is how I remember which one is which. I hope this is useful to someone else. :)
@Neamerjell
7 ай бұрын
"Those who don't know the difference between 'entomology' and 'etymology' bug me in ways I can't put into words."
This is the short and best video that explained concurrency very well made.
My favorite python series. It's been a while! Glad you're back.
After watching several tutorials about async, This is the only one make me understand.
I love the way it's presented, it's so refreshingly different from the many boring courses. love you 🥰
landed here to learn about await and async and this was the video that held my interest. Loved the lighthearted vibe and silly dry humor throughout what was also an incredibly helpful video. Thank you and good job.
Life saver! Love the simplicity! Thank you so much! ♥
Wow! This will help save some money with shorter aws lambda runtimes. Thank you!
I'm certain this is the most interesting, helpful, and funny asyncio video I've seen, so far. Insta-subscribe.
Even with all the puns and cutesy, this short video did more to help me get my head around how to actually implement async than all the others I have watched put together. So many of them spend most of their time explaining *why* to use it and end up glossing over *how*. This one gave enough why to make sense, and actually made the how understandable. Good job.
I learned some serious stuff here and chuckled along the way. It was fun.
Our team uses this module and other async libraries. Glad to see you post. The real power comes in using an async wrapper class for each io operation.
Slickest and most entertaining tutorial I#ve had the pleasure to watch! Just subscribed!
Absolutely LOVE the style here. Beside being super clear and concise it’s funny as well. Well done. Looking up the courses!
Was just needing this and my fav python creators delivered!! Thank you! 💚
Welcome back! good to see a video from you after a long time
Thank you very much. After spending a decade on this finally I am able to grasp the whole async await thing.
Best video for asynchronous programming
Big shout out to Ulka Simone Mohanty.. she's the actress and really fantastic at these videos.
@MariosMartiopoulos
7 ай бұрын
She also has a degree in computer science.
OMG! That joke at the beginning was delicious. Ganymede, Callisto, Io and Europa.
Excellent as ever, well done Socratica!
I Love how you explained it... so understandable, you made it easy for me to understand Best AsyncIO, await, and async tutorial out there
Outstanding quality.. both in the visual production as well as the narrative.
Who loved the Introduction to SQL? Really enjoyed it plus helped me pass my database exam once way back in college.
Trying to understand this topic for some time now. Absolutely clear finally ty!
Thanks for coming back my best teacher 🎉🎉🎉
Fantastic video production and explanation 👌👏
The legend is back. The most impressive way to teach
Incredible video. Such comprehensive concept explained very cleanly
Thanks for the excellent video, great examples and easy to follow
Awesome video as usual - fun and useful!
The humor of this video is so corny, but I'll take it any day of the week over listening to another disembodied voice drone over top of a 2160p screen capture of an IDE where they don't even open a document for the first 3 minutes. Very clear and engaging explanation, subscribed.
Ulka -- Love the wry humor!! Python was never so entertaining. Please keep doing what you're doing.
Amazing approach and explanation.
thank you madam, Glad you're back.
Wow!! Just Wow!! What an amazing explanation
This is actually so good
She's back!!!!!🕺💃🕺💃🕺💃
This was amazing! Thank you!
Learnt something new, thank you!
Thanks to you so much. You won a subscriber.
This was fantastic, thank you
I like this💚💚...you explained it all
Brilliant video ! Bravo !!
This is awesome and deserves a millions of likes
this is gold, thank you so much
Amazing video!
Tnx ! amazing as always.
Hii, I love your videos. Can you please add videos on multithreading and multprocessing? That would be really helpful.
That async-IO joke.... hit hard
Bravoo ! Nice explanation
Awesome!♥
Nice tutorial...
Who writes the text of these videos? Genius.
Awesome explanation!
@Socratica
3 ай бұрын
Thank you so much for your kind support!! 💜🦉
Great video, as usual :)
I love this girl returned!!
What a superb video🤩🤩🤩🤩🤩
heavily underrated video
Nice, that she is back
Welcome back Funny Robot! 🤖
very informative videoa
This will be very helpful for my son who's interested in programming
@Socratica
7 ай бұрын
Wonderful! The family that codes together learns loads together! 💜🦉
Thank you GLaDOS sister
She's back
Crazy production and the joke of AI doing mischievous axtivities was extraordinary fr.
I just realised I keep watching these for the humour. I don't even like python. 😁
nice
thanks Spock
@Socratica
6 ай бұрын
🖖
Why can't all tutorials be like this?
👏 👏
seggestion Socratica: how can i build my own python library or package ?
God I love this woman
Hello, Would you please one one python multiprocessing. Thanks for this one
In which version of python asyncio is introduced?
@senr4in
7 ай бұрын
3.4?
@MannuJadhav
7 ай бұрын
3.5
Bro what is this ai tool what ai tool u use to do videos like this 😊
Tried but doesn't work, it took the same time
Hey Teacher how about a payment courses Thanks a lot🙏 2:32
The return of eveyone's favourite AI dominatrix
I am thinking about the future. Several of them, in fact. All of them concurrent.
While I'm sure this pattern is very useful, it has some severe limits. As described here, you have to wait for *all* the concurrent tasks to get done. There are cases where you want to dispatch several threads, at different times, and as *each one* gets done, do something with the result.
@Mrme-cn9je
7 ай бұрын
What language mechanism is used then in your example? Another technique?
Sheldon Cooper vibes
3:27 lmao
inhale, widen your eyes and run
are you an Ai teaching robo? :D
hmmm..... code is not pythonic (no snack case convention followed in function name) [OUCH!!] 👻 but good explanation though 🤓
My 10 year old clothes neither look so good nor fit so well any more.
i can't help but think this is a deepfake 🤷♂ she was gone for so long now she's back? naaah
No link for code?