JavaScript Trực Quan - Vòng Lặp Sự Kiện, Web API, Hàng Đợi (Micro)task

Tác giả: Lydia Hallie
Ngày xuất bản: 2024-04-04T00:00:00
Length: 12:35

Learn how the browser event loop, task queue, microtask queue, and Web APIs work together to enable non-blocking, asynchronous JavaScript.

- https://www.patreon.com/LydiaHallie

- https://buymeacoffee.com/lydiahallie

- https://twitter.com/lydiahallie

- https://www.linkedin.com/in/lydia-hallie/

- https://instagram.com/theavocoder

Timestamps:

0:00 Intro

0:32 Call Stack

1:18 Single-threaded Problem

2:01 Web APIs

2:47 Callback-based APIs

4:04 Task Queue

4:39 setTimeout

6:22 Microtask Queue

8:40 Promisifying Callbacks

8:57 Challenge

10:52 Recap

11:58 Outro

Dịch Vào Lúc: 2025-03-14T12:08:12Z

Yêu cầu dịch (Một bản dịch khoảng 5 phút)

Phiên bản 3 (ổn định)

Tối ưu hóa cho một người nói. Phù hợp cho video chia sẻ kiến thức hoặc giảng dạy.

Video Đề Xuất