Tag: asynchronous programming

About async functions
Post

About async functions

Originally posted on dev. Async functions are great, especially if you have to call multiple functions in a row that return promises. With async / await, code becomes easier to reason about for humans, because the data flow mimics synchronous code, which is what we are used to reading. So what are async functions exactly? Syntactic...

Asynchronous programming in JavaScript
Post

Asynchronous programming in JavaScript

37.1. A roadmap for asynchronous programming in JavaScript 37.1.1. Synchronous functions 37.1.2. JavaScript executes tasks sequentially in a single process 37.1.3. Callback-based asynchronous functions 37.1.4. Promise-based asynchronous functions 37.1.5. Async functions 37.1.6. Next steps 37.2. The call stack 37.3. The event loop 37.4. How to avoid blocking the JavaScript process 37.4.1. The user interface of the browser can be blocked 37.4.2. How can we avoid blocking the...

Asynchronous programming. Await the Future
Post

Asynchronous programming. Await the Future

This is the third post of a series about asynchronous programming. The whole series tries to answer the simple question: “What is asynchrony?”. At first, when I just started digging into the question – I thought that I know what it is. It turned out that I didn’t know a clue about what asynchrony is...