JS: Development of abstractions for asynchrony - course 3900 rub. from Hexlet, training 8 lessons, Date November 28, 2023.
Miscellaneous / / November 28, 2023
You will learn more about timers, event loop and event emitter. As a result, you will learn how to work with errors in asynchronous code and use timers. This will come in handy if you decide to make your code more straightforward and predictable. The course is suitable for programmers who are already familiar with asynchronous programming. To make learning easier, you should study the JS: Asynchronous Programming course in advance.
Introduction
Get acquainted with the idea of asynchronous programming and the structure of the course.
Event loop
Get to know the event loop, a concept that allows you to implement asynchronous programming in the browser using the event model.
Timers
Consider the timer mechanism provided by the JS runtime. Learn a simple example of using timers to perform synchronous tasks asynchronously.
Callback hell
Learn about the scary "callback hell" situation that can occur when you have dependent asynchronous calls and multiple callback functions. To learn how to deal with this problem, consider the waterfall technique.
each function
Continue developing a library for working with asynchronous code, write the 'each' function.
Early binding
Learn about the context preservation method for asynchronous calls.
Dealing with errors
Learn to work with errors in asynchronous code, understand the differences from error handling in synchronous code.
Event emitter
Get acquainted with the concept of event emitters, the use of which can be very useful in applications with asynchronous code.
Additional materials
Articles and videos curated by the Hexlet team. Will help you dive deeper into the topic of the course