Рет қаралды 5
A promise is a way to handle asynchronous operations in programming. Think of it like a real-life promise: when you promise to do something, you either fulfill it or let the person know you can't. With the following states, "Pending", "Resolved" & "Rejected"
In computing, synchronous and asynchronous operations refer to how tasks are handled in relation to time and task completion.
I gave a very nice breakfast example of how all this works! Enjoy!
FREE online Community - / discord
PAID tutoring/training- cator.co.za/training
Timestamp
0:00 Introduction
0:15 Promise explained
0:52 Synchronous v Asynchronous
1:44 Real-life example
2:20 Recap: Cator Store
3:38 Convert sync to async
6:11 Consuming: Success, Fail & Finally
9:20 Reject/Catch
10:48 Async/Await
12:05 Then OR Await?
13:29 Advanced topics
16:40 Next video…