Тёмный

Async JS | callback | Event Loop | Promise | Async Await 

Frontend Master
Подписаться 65 тыс.
Просмотров 1,6 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@DipakShende-oe9pn
@DipakShende-oe9pn 8 месяцев назад
🎯 Key Takeaways for quick navigation: 00:01 🔄 *Synchronous vs. Asynchronous Programming* - Synchronous programming executes code sequentially, line by line. 02:45 🔄 *Challenges in Coding and Implementation* - Solve the problem mentally before implementing the solution. 04:19 📝 *Understanding Callbacks in Programming* - Callbacks involve calling a function or piece of code after a certain time. 05:42 🔄 *Introduction to Callbacks and Problem Statement* - Callbacks involve calling a function after a delay. 08:01 🧁 *Creating Tea-making AI using Callbacks* - Demonstrating the process of creating a Tea-making AI using callback functions. 10:51 ☕ *Debugging Tea-making AI: No Flow Control* - Lack of flow control and error handling in the code. 12:54 ⏳ *Identifying and Solving Timing Issues* - Using `console.time` and `console.timeEnd` to measure the execution time. 13:51 🔄 *Synchronous Programming to Solve Timing Issues* - Exploring synchronous programming as a solution. 15:46 ⌛ *Implementing Timeout Function for Asynchronous Code* - Introduction to the `setTimeout` function. 16:29 🔄 *Synchronizing Function Calls with Callbacks* - Calling the `addSugar` function with `setTimeout` to synchronize the flow. 17:46 🕰️ *Managing Delays with Timeout and Synchronization* - Using `setTimeout` to introduce a delay after adding ginger. 19:20 🤔 *Discussing the Use of Callbacks* - Clarifying the usage of callbacks within a method. 21:01 📞 *Understanding Callback Hell and Its Challenges* - Introduction to Callback Hell and its common occurrence. 23:17 🔄 *Handling Callbacks in a Chained Sequence* - Demonstrating a chain of callback functions passing data. 24:51 ⚠️ *Recognizing the Problems of Callback Hell* - Identifying issues with extensive callback usage in real-world scenarios. 26:12 🤝 *Delegation of Responsibility in Asynchronous Programming* - Explaining the concept of delegation of responsibility in asynchronous programming. 27:08 🔀 *Controlling the Flow with Inversion of Control* 28:30 ⚠️ *Challenges with Callbacks in Real-world Scenarios* 30:27 🚥 *Handling Long Delays and Separation of Concerns* 34:12 🌐 *Dealing with Network Issues in Asynchronous Operations* 36:35 📚 *Explaining Callbacks and Control Flow* 38:16 🔄 *Managing Responsibility in Callbacks* 40:51 🕰️ *Time-Related Considerations in Asynchronous Operations* 41:57 🔄 *Synchronous and Asynchronous Code in Callbacks* 42:36 🔀 *Alternative Approaches in Callbacks* 43:35 🔍 *Unusual Voting Scenario and Binary System* 44:59 📚 *Recommendation and Overview* 45:16 🔄 *Introduction to Event Loop Before Promises* 46:29 🔄 *Introduction to Event Loop* 47:23 🔁 *Event Loop Mechanism and Call Stack* 48:08 🔄 *Polling and Call Stack Interaction* 48:49 🔄 *Call Stack and Callback Queues* 49:58 🔀 *Synchronous Nature of JavaScript* 50:13 🔄 *Set Timeout as the Historical Solution* 50:25 🔄 *Introduction to Promises in JavaScript* 51:24 🔄 *Analogizing Promises with Car Parts* 52:03 🔄 *Exploring JavaScript Developer's Thought Process* 53:20 🔄 *Progression in Career and Clear Understanding* 54:44 🔄 *Event Loop as a Component in JavaScript Engine* 55:10 🔄 *Overview of JavaScript Engine Components* 56:21 🔄 *Introduction to Event Loop and Call Stack* 57:04 🔄 *Understanding Tasks in the Call Stack* 58:21 🔄 *Creating a System with Promises and Async Await* 01:00:43 🔄 *Event Loop as Moving Parts in the System* 01:01:18 🔄 *Introduction to Execution Thread and Parts* 01:02:38 🔄 *Understanding Thread of Execution* 01:03:52 🔄 *Execution of SetTimeout and Web API* 01:05:39 🔄 *Handling SetTimeout in Event Loop* 01:06:45 🔄 *Event Loop's Role in Task Execution* 01:06:59 🔄 *Handling Microtasks in Event Loop* 01:08:48 🔄 *Priority Classification in Microtasks* 01:09:52 🔄 *Implementing Nested Stack for SetTimeout* 01:11:00 🔄 *Nested Execution in SetTimeout* 01:14:45 🔄 *Handling Delays with SetTimeout* 01:15:16 🔄 *Pitfalls of SetTimeout for Reliable Timing* 01:18:57 🔄 *Using SetTimeout to Control Code Execution* 01:19:41 🛠️ *Microtasks and Concurrency in the Event Loop* 01:21:37 🔄 *Implementing Event Loop with SetTimeout* 01:22:43 🔄 *Understanding Event Loop and Call Stack* 01:24:41 ⚙️ *Managing Microtasks in the Event Loop* 01:25:51 🔄 *Coordinating Macro and Micro Tasks* 01:28:04 📊 *Differentiating Macro and Micro Tasks Execution* 01:28:49 🌐 *Analogizing Event Loop with a Queue System* 01:29:17 🔄 *Understanding Microtasks in the Event Loop* 01:30:22 🤔 *Distinguishing Normal, Macro, and Micro Tasks* 01:31:50 🔄 *Overview of Event Loop Concept* 01:32:43 🔄 *Explaining Promise, Microtasks, and SetTimeout* 01:33:22 🔄 *Understanding Macro and Micro Tasks in Execution* 01:35:20 🌐 *Real-World Examples: React, Render Queue, and Animations* 01:36:18 🔄 *Limited Task Types in Render Queue* 01:37:08 🔄 *Efficient Use of Promise, Microtasks, and SetTimeout* 01:38:01 🔄 *Solving Callback Hell and Control Inversion with Promises* 01:38:44 🔄 *Phases of a Promise: Creation and Consumption* 01:39:26 🔄 *Understanding Contract and Decide Phases in a Promise* 01:40:45 🔄 *Implementing a Promise: Creation and Contract Define* 01:41:54 🔄 *Logging Data After Promise Contract Execution* 01:42:09 🔄 *Promise Contract Execution: Resolve and Reject Functions* 01:42:51 🔄 *Constructor and Functions Within a Promise* 01:43:16 🔄 *Defining the Resolve and Reject Functions in a Promise* 01:44:10 🔄 *Clarifying the Resolve and Reject Functions in a Promise* 01:45:29 🔄 *Handling Resolve and Reject Simultaneously* 01:46:53 🔄 *Handling Promise Resolving and Rejecting* 01:48:35 🔄 *Customizing Error Handling in Promises* 01:49:17 🔄 *Resolving and Rejecting with Final Cleanup using `finally`* 01:50:47 🔄 *Returning Promises from Functions and Chaining* 01:51:46 🔄 *Simplifying Promise Chaining with `async/await`* 01:54:03 🔄 *Exploring Automatic Resolution in Promises* 01:54:52 🔄 *Handling Automatic Resolved Promises and Explaining Chaining* 01:56:32 🔄 *Dealing with Fetch Data and Multiple `catch` Blocks* 01:58:19 🔄 *Debugging and Analyzing Execution Flow in Promises* 01:59:58 🔄 *Exploring Promise `finally` Method* 02:00:34 🔄 *Ordering of `catch` Blocks and the Role of `finally`* 02:01:53 🔄 *Handling Multiple `finally` Blocks and Logic Execution* 02:03:01 🔄 *Variations in Promise Flavors: `all`, `any`, `settled`, `race`* 02:05:19 🔄 *Simplifying Promise Execution with `Promise.all`* 02:07:38 🔄 *Advantages of `Promise.all` in API Calls* 02:09:23 🔄 *Performance Optimization: `Promise.race` vs `Promise.all`* 02:10:51 🏁 *Understanding the Timing of Concurrently Executed Promises* 02:11:47 🚫 *Downsides of `Promise.all` and the Need for `Promise.allSettled`* 02:13:36 🏎️ *Racing Promises: Introducing `Promise.race`* 02:15:01 🔄 *Improving Promise Handling with `Promise.race`* 02:16:30 🔄 *Chaining Promises and Ordering Outputs* 02:19:35 🔄 *Chaining Promises and Error Handling* 02:22:10 🔄 *Introduction to Promise Chains* 02:23:29 🔄 *Building a Mechanism for Sequential Execution* 02:25:13 🔄 *Connecting Promises in a Chain* 02:26:47 🔄 *Handling Promise Resolution and Next Execution* 02:28:38 🔄 *Exploring the `reduce` Method* 02:32:07 🔄 *Troubleshooting and Debugging* 02:37:18 🔄 *Creating a Sequential Promise Chain* 02:38:20 🔄 *Explaining the Benefits of `reduce` Function* 02:41:05 🔄 *Discussion on Personal Preferences in Code* 02:42:18 🔄 *Solving the Problem of Sequential Task Execution* 02:44:14 🔄 *Interactive Practice: Predicting Promise Execution Order* 02:47:56 🔄 *Execution Order in Async Code* 02:49:01 🔄 *Direct Execution of Passed Functions* 02:50:42 🔄 *Challenges with Sequential Promise Chaining* 02:52:04 🔄 *Implementing Async/Await in JavaScript* 02:53:23 🔄 *Handling Promises with Async/Await* 02:55:16 🔄 *Timeout and Immediate Resolution in Async Functions* 02:56:31 🔄 *Interesting Aspects of Async Functions* 02:57:56 🔄 *Understanding Async/Await as Syntactic Sugar* 03:00:09 🔄 *Using Async/Await with Microtasks* 03:01:52 🔄 *Async/Await with Regular Promises* 03:02:33 🔄 *Clarifying Execution Order in Async/Await* 03:02:44 🤔 *Understanding Execution Order in Async/Await* 03:04:01 🔄 *Exploration of Await Execution Flow* 03:05:21 🔍 *Unveiling the Mystery of Await's Delay* 03:06:59 🔄 *Dive into Microtask Queue in Async/Await* 03:07:34 🤯 *Understanding Await Scheduling and Immediate Execution* 03:08:58 🔄 *Unveiling the Magic of Await's Microtask Execution* 03:10:14 🧙‍♂️ *Decoding Await's Microtask Execution in Real Example* 03:11:55 🌐 *Await's Impact on Main Thread Execution and Microtask Queue* 03:13:39 🔄 *Clarifying Await and Microtask Misconceptions* 03:14:07 🤔 *Recap of Callbacks, Promises, and Async Await* 03:15:12 🌐 *Introduction to Generators in JavaScript* 03:16:06 🤯 *Exploring Pending State in Promises* 03:17:17 🔄 *Understanding Promise States and Status* 03:18:14 🛠️ *Exploring Promise Status Using Den and Catch* 03:18:49 🤔 *Insights into Promise Initialization and Pending State* Made with HARPA AI
@rahuulmiishra
@rahuulmiishra 8 месяцев назад
🫡
@zainajmal2779
@zainajmal2779 6 месяцев назад
Sir last me jo apne waterfall parallel series ka link kaha tha wo hamain nahi mila, apne i think meet pe hi share ker diya, please yaha b share karain
@gyanjha9366
@gyanjha9366 7 месяцев назад
Sir addTeaLeaf function toh callback me kahi Aya hi nahi
@ArthDarji
@ArthDarji 7 месяцев назад
thx
@smsaikat9329
@smsaikat9329 7 месяцев назад
❤❤❤❤
Далее
Master Async JavaScript: What it is and How to Use it
1:18:37
Вопрос Ребром - Серго
43:16
Просмотров 1,4 млн
Iran launches wave of missiles at Israel
00:43
Просмотров 820 тыс.
Asynchronous JavaScript: Event Loop & Callbacks
1:42:40
Просмотров 3,5 тыс.
The Value of Source Code
17:46
Просмотров 41 тыс.
Google Cloud Platform Tutorial Explained in 4 Hours
4:10:38
Kubernetes 101 workshop - complete hands-on
3:56:03
Просмотров 1,6 млн