HomeНаука и техникаRelated VideosMore From: Angular Firebase

The Async Await Episode I Promised

2167 ratings | 37011 views
The await is over! Learn how to make your JavaScript Promise code beautiful and concise with async-await https://github.com/codediodeio/async-await-pro-tips Jake Archibald's Talk: https://youtu.be/cCOL7MC4Pl0 Demos with Angular: https://www.youtube.com/channel/UCYFd7Qy93YP7gPERnxP545A
Html code for embedding videos on your blog
Text Comments (335)
Neeraj Negi (11 hours ago)
Hi, I am from India. I haven't received the stickers yet😅. Great video by the way. Keep up the good work.
Vinay Kumar (1 day ago)
Mauricio Robayo (5 days ago)
A single like is not enough for this video.Thanks!
Ajith Shenoy (5 days ago)
Please create a JS playlist.
Jed Achas (8 days ago)
How do you show the elapsed time in the debug console?
Roberto Carlos (2 days ago)
The line of code you want is at 4:03 ( https://goo.gl/RYs3Jv ) You can also use *console.time()* and *console.timeEnd()*
MrEffg (8 days ago)
Awesome explanation, but please take your time explaining, mate. Way too fast 😀
Ziyo Shams (12 days ago)
Let's say we have an array of 20 promises, and we want to resolve them concurrently with Promise.all(). What happens when one of the promises get rejected?
Gusto XT (11 days ago)
Promise.all returns a promise, so you can chain it with a catch that will be called if any goof up
Faraaz Jabbar (12 days ago)
Your channel should have more subs. Your content is short and high quality mate
flowziek (12 days ago)
To fast, please just live code that makes it gives us more time to process what is going on instead pasting a block of code say what the block does in 1 a 2 seconds and than move on. This gives alot of irritation
ManuTz SonG (12 days ago)
how can I get that elapse time ?
Roberto Carlos (2 days ago)
The line of code you want is at 4:03 ( https://goo.gl/RYs3Jv ) You can also use *console.time()* and *console.timeEnd()*
megri (13 days ago)
one million loop is dangerous even wrapped by promise. for(let i = 1; i < 1000000; i++) is dangerous. function loop(i) { if(i >= 1000000) { return resolve(); } aHeavyOperation(); process.nextTick(loop, i + 1); } loop(1); // better approach because second way is chunked to event loop
Black Star (13 days ago)
Awesome explanation 🙂 thank you
Mostafa Esmaeili (14 days ago)
put speed on 0.75 , thank me later
Mostafa Esmaeili (14 days ago)
slow down man :))
Dayton Outar (16 days ago)
@Angular Firebase BTW, Have you found any relevance to using yield and generators?
Dayton Outar (16 days ago)
Good pace for me
Cristian Fuentes (18 days ago)
abhijit s (19 days ago)
Good video about async await
psychic10 (22 days ago)
Your delivery is too fast. Newbies will move to another video as soon as they lose focus.
yassine aitalla (29 days ago)
Maybe too late but, can I have a free t-shirt?
Mza (1 month ago)
Probine Business (1 month ago)
I await that you will explain a little slower
rruaanv (1 month ago)
Well presented.
ahmed korim (1 month ago)
that quilty <3
abhiyan timilsina (1 month ago)
Ian Lumagod (1 month ago)
HA-HA 0:34
Santosh N.S. More (1 month ago)
Hi, It helps me lot to understand async and await. To understand it I have seen the videos 3 times. Thanks for making such videos.👍👍
Angular Firebase (1 month ago)
Great to hear that, thanks for watching :)
Oswaldo Olea (1 month ago)
....of course you speed down, the guy speak to fast, petty because the content is great.
Garfianto Dwi Cahyadi (1 month ago)
orcsword (1 month ago)
T-shirt, wonderful T-shirt. :)
AmxCsifier (1 month ago)
puns overflow
shankar Dayal upadhyay (1 month ago)
Great explanation, specially when you started it from event loop. Loved the video as well as "Fire.......base...". Thanks
Dzintars Klavins (1 month ago)
Really too fast and impossible to follow. Where do you hurry?
Ankur Dubey (1 month ago)
const didIWin = async () => { const like = await like(); const subscribe = await subscribe(); const comment = await comment(); return (like && subscribe && comment); }; const result = (didIWin === true ? 🤩 : 😕 + 'Better Luck Next Time' ); console.log(result);
Swapnil Srivastava (1 month ago)
Awesome . thanks for the video :)
Eric R (1 month ago)
what debug console are you using?
Samuel Camargo (1 month ago)
can I win another time? Keep up with the good work Jeff!!!!
Widi Yanto (1 month ago)
"When you're start making promises that's when you're more likely to screw things up" That's also how it works in real life. Noted.
Gheorghe Ganea (1 month ago)
Very nice guide sir! What font are you using though? Looks great!
Omkar Joshi (1 month ago)
Amazing it is :)
Aris Gatoudis (1 month ago)
The best video I've watched so far for await / async. I covers all the aspect in such small duration. Loved the emoji too :D
Remmoze (1 month ago)
Can you please tell me what is this IDE?
Remmoze (1 month ago)
Ankur Dubey (1 month ago)
it's VS Code.
George Jenkins (1 month ago)
Pick me
T K Gaming (1 month ago)
which font is that ? P.S: Thanks for the great video !
Péter Nagy (1 month ago)
Great video! You kept what you promised. :)
Filip Seman (1 month ago)
Hey nice video :)
Kunal Rai (1 month ago)
Thanks for the content
Gol D. Roger (1 month ago)
Why do you have tomatoes on your codes? How do you do that?
Mr Turbo (1 month ago)
I see what you did there with that title, nice
Antonio Gonzalez (1 month ago)
i want that shirt, good video dude
Simran Knight (1 month ago)
I was watching my udemy videos tutorial in which my teacher was talking about async await and now I saw this video suggested on my YouTube artificial intelligence is going to take over humanity
jethik b (1 month ago)
good video
Milan Zivanov (1 month ago)
Nice tutorial ☺
Sameer Gurung (1 month ago)
Freedestroyer (1 month ago)
Lovely info! Well done and thanks for the good content!
Michael Richins (1 month ago)
(async win () => { const watch = await watchVideo(); const comment = await writeComent(); return {watch, comment}; })();
Dominik Korsa (1 month ago)
This video is the best Async/Await video on YouTube! Keep it up!
Paul Berden (1 month ago)
Hey Jeff, are you by any chance related to Frank Delaney? https://en.wikipedia.org/wiki/Frank_Delaney
Angular Firebase (1 month ago)
No, don't think so. But I do have some Irish ancestry.
Nixon Kosgei (1 month ago)
That has been a long wait... Finally here
Arushi Bajpai (1 month ago)
watching this quite late.. can I get a t-shirt now? if there are any left. possibly.
Fun Of Heuristic (1 month ago)
nicely explained with great examples.
razakadam74 (1 month ago)
great as usual
Connor McGill (1 month ago)
I love this channel and maintain a pro subscription over on their site and have found it to be more than worth the price of subscription, free access to current and upcoming courses is amazing and I love how a lot of the pro videos are a direct and more in-depth look at an earlier free video with an emphasis on real world use case scenarios. This video is excellent and really helped me to further understand how and more importantly when and when not to use async await in my code. Thanks again man and keep producing incredible content!
Angular Firebase (1 month ago)
Thank you Connor! Happy to hear the feedback. How NOT to use async/await is probably the most important part :)
NoLogicGaming (1 month ago)
await declare(tshirtWinnerSelection())
yay it's ryan (1 month ago)
This might just be the greatest Async Await tutorial ever created lol
Daniel Huang (1 month ago)
You're the best!
Alejandro AR (1 month ago)
Damn, this was really good
dinuka saminda (1 month ago)
thanks for the angular firebase sticker, its just received
Surendra Singh Chhabra (1 month ago)
How you add emoticon in code??
Nour (1 month ago)
hey what icon pack for windows do you use?
Samuel Hindess (1 month ago)
danddbandb (1 month ago)
Awesome video... Thanks.
James Jensen (1 month ago)
Can you do a video about NestJS?
Jeff Santos (1 month ago)
WTF I'm in the intro hahah I didn't know when I came to watch this video!! Nice surprise lol Original Photo: https://www.instagram.com/p/BAYIP3LHOLl/?taken-by=jefflssantos
Wow, this is excellent. Thanks very much!
Rey Anthony Renacia (1 month ago)
thanks for this. What IDE supports emojis or did I miss something? haha
John Daves (1 month ago)
I have learned so much in a short period from your channel ... you deserve tons of credit
iRED (1 month ago)
Very nice
Sourish Dutta (1 month ago)
Thank you soo much.I just want to know one thing how microtask queue is internally related with event loop task queue.please explain me this please.
Will Fairclough (1 month ago)
Jake Archibald's talk on the event loop was definitely worth the watch. https://www.youtube.com/watch?v=cCOL7MC4Pl0
Brett Mierzejewski (1 month ago)
Random comment below about a sink.
Clement Siby (1 month ago)
This has been madly helpful. I wish I knew this 2 years ago!
Jam Roll (1 month ago)
love it. but, very fast info...too fast, i think..
Paweł Tomaszewski (1 month ago)
I watched it twice and I'm can't wait for new videos.
3lby (1 month ago)
It’s insane how quickly JS is developing new features. So excited to see what happens next or if we can get an ES based typing system. Thanks for the vid!
Micah Goodreau (1 month ago)
awesome job. love your vids, keep the coming!
jandor88 (2 months ago)
Great content! 🔥
kanishkabc kanishk (2 months ago)
Learning great things from this channel...can anyone suggest good ui template for Angular and ionic???
Zigmas Slušnys (2 months ago)
Found your video of right good code not 💩 in my feed, loved you style of explanation and the way you provide the video editing is exceptional 🤩 one of the channels I'll definitely share and follow!
john carlo miel (2 months ago)
This is so great dude :)
Preston Battin (2 months ago)
Rahul Gupta (2 months ago)
One of the best channel making intermediate developer expert
Gurpreet singh (2 months ago)
Your videos are really great
Gitcoin Bitcoin (2 months ago)
Amazing channel mate, nice emojis, nice content, everything just nice <3.
Jan Gajdošík (2 months ago)
Not sure if the smoothie was so sweet or async/await :) Great video as always!
Sigurd Sæther (2 months ago)
Being new as a developer with just over a year coding and picking up JS as my main language a couple of months back, this video explains so many of the issues I have encountered coming from a synchronous language (Java and Python) to async in JS and TS. This channel does a great job of explaining essential concepts to newcomers like me. I'm glad I found the channel. Thanks!
Edmond Movsisyan (2 months ago)
for await (...) does not work for me. What's the problem?
ui_wizard (1 month ago)
for-await-of is available with Node 9.2+ using the "--harmony-async-iteration" flag. However, keep in mind that using Node 9.x in production can have consequences when upgrading later down the line, as it is not LTS. The next major LTS is Node 10, which should be released later in October and supports async iterators natively without harmony flags.
Rusman Wahab (2 months ago)
can you make a video about angular schematic?
Mohammed Azhar (2 months ago)
Hi, you are just wonderful teacher Pls can you tell me which editor you are using in this video
Rahul Ram (2 months ago)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.