async
5 tutorials tagged “async”.
- Async and AwaitWrite async code that reads like sync code: async functions, await, try and catch, sequential vs parallel awaits, loops, and top-level await.
- Synchronous vs Asynchronous CodeWhy JavaScript needs async code: blocking vs non-blocking work, the single thread, callbacks for later results, and how callback hell led to promises.
- Async Mistakes and DebuggingThe async bugs everyone makes: forgotten await, forEach with async, unhandled rejections, slow sequential code, race conditions, and testing async code.
- The Event LoopHow JavaScript runs async code on one thread: the call stack, task queue, microtask queue and rendering, with ordering puzzles explained step by step.
- PromisesPromise states, then, catch and finally, chaining and returning values, creating promises, converting callbacks, Promise.withResolvers and Promise.try.