
Async + Await
Syntax - Tasty Web Development Treats
00:00
How to Use a Sync Await to Control Your Flow
A sync await is simply just seeing syntax on top of existing promises. So all of your code is still written in promises because the flip side to listening to a promises you can write a function that will immediately return a promise and then at some point in the future It will either resolve meaning it worked and it will give you data or it will reject meaning that there was an error and it will cancel Or not cancel, but it will uh, it will error out Yeah, so that's where how we've arrived at today where we have well tons of options But we have native options. We have package options and all sorts of stuff to help you control your flow and probably is the best it's
Play episode from 08:15
Transcript


