meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Async + Await

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, Technology, News

4.9 • 1.2K Ratings

🗓️ 17 January 2018

⏱️ 55 minutes

🧾️ Download transcript

Summary

Freshbooks — Sponsor If you are a small business or freelancer check out Freshbooks.com Cloud Accountingand get 30 days free. Make sure to enter SYNTAX into the "How did you hear about us" section. Show Notes 02:55 Wes' Async + Await talk on YouTube from DotJS JavaScript is Asynchronous Ryan Dhal (Creator of Node.js) original Node.js talk 06:00 Callback Hell Q Bluebird What is a promise? Promises are an IOU 8:30 Async + Await IS promises What is Async + Await? How does the code look? Returning values from an await 15:20 Performance Considerations MEGA PROMISES Promise.all() Here is an example: const [weather, store] = Promise.all(getWeather(), getStores()); 19:22 This stuff is 100% native Most new Browser APIs are build on Promises Fetch() Some examples: await fetch(' https://api.github.com/users/wesbos').then(data => data.json()) OR await (await fetch(' https://api.github.com/users/wesbos')).json() Axios 22:48 The Payment Request API You should listen to episode 006 on accepting money on the internet Web Animation API 27:00 Snackisodes Snack Packs Hasty Treats?!!! 28:00 Making callback-based functions promised basked es6-promisify util.promisify() 30:00 Error Handling Methods View my slides for some code examples. Try/Catch High Order Function Just handle the error when you callIt().catch(dealWithIt); Node's process.on('unhandledRejection') event 36:00 Browser Support Babel it! 38:00 AbortController() Abortable Fetch SIIIIICK PICKS 42:00 Scott: Ring Doorbell Wes: The Indicator Podcast 47:00 Sick Tip Chrome's Autoplay is changing Details on this Visit chrome://media-engagement to see your scores Shameless Plugs Fullstack GraphQL CSS Grid Course is coming sooooon! Tweet us your tasty treats! Scott's Instagram LevelUpTutorials Instagram Wes' Instagram Wes' Twitter Wes' Facebook Scott's Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

You're listening to Syntax, the podcast with the tastiest web development treats out there.

0:06.0

Strap yourself in and get ready. Here is Scott Tolinsky and West Boss.

0:10.5

Hello everybody and welcome to Shop Talk Oh wait. No, no, that's not I'm not Chris. Okay. Hello everyone

0:17.1

Welcome to syntax actually what's funny about that is the amount of times people tweet me and get me or you can confuse with Chris or Dave

0:28.5

I guess two white dudes on a podcast talking tech

0:32.4

I'll pick confusing Nice on a podcast talking tech. It's a little bit confusing.

0:34.0

Nice.

0:35.0

Welcome everyone, how are you doing today, Scott?

0:38.0

Hey, I'm doing, I'm cold.

0:40.0

I'm sure a large part of, you know, North America is cold right now.

0:44.7

So, very cold.

0:46.1

Yeah, I woke up today and like the furnace like couldn't hang,

0:48.9

so it's like really chilly in our house right now.

0:51.8

Oh, like your furnace is like just totally dead?

0:54.0

No, it's, we have an old house.

0:57.0

Yeah.

0:58.0

Yeah.

0:59.0

And the windows are probably the culprit of all of our

1:04.0

insulation issues but like because of that our house does not stay super warm and the

1:08.8

furnace is just like

1:10.3

it's too cold for me right now I'm having a hard time keeping your house warm. Yeah. Yeah. Oh boy. We just got new doors. Yeah, we have a super old house as well and we have new windows, but we just got new doors and like the amount of how nice and

1:23.3

warm it is and then I also spend an entire day going around with a can of spray

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.