Tag Archives: async

Swoole – PHP asynchronous programming framework

Swoole is an high-performance network framework using an event-driven, asynchronous, non-blocking I/O model which makes it scalable and efficient. It is written in C language without 3rd party libraries as PHP extension. It enables PHP developers to write high-performance, scalable, … Continue reading

Elsewhere , , Leave a comment

JavaScript asyncawait: Resolving Promises in parallel

Recently I saw a colleague implement some functionality in which he required two results from an API using async–await. The piece of code looked something like this: The code looks fine, is syntactically correct, and works … but there’s one … Continue reading

Elsewhere , , Leave a comment

Wes Bos – Async + Await

Short talk by Wes Bos on Async + Await, as recorded at dotJS 2017: Slides available here. Related: JavaScript: From Callbacks to Promises to Async/Await in 7 seconds

Elsewhere , , Leave a comment

Cancel a JavaScript Promise with AbortController

👋 This post also got published on Medium. If you like it, please give it some love a clap over there. In How to Cancel Your Promise Seva Zaikov has done a nice writeup on several techniques on how to … Continue reading

Original Content , , Leave a comment

Asynchronous stack traces: why await beats .then()

Insightful post by Mathias Bynens: The fundamental difference between await and vanilla promises is that await X() suspends execution of the current function, while promise.then(X) continues execution of the current function after adding the X call to the callback chain. … Continue reading

Elsewhere , , 1 Comment

JavaScript: From Callbacks to Promises to Async/Await in 7 seconds

A picture gif is worth a thousand words: ☝️ In case you do want a write-up, check out 6 Reasons Why JavaScript’s Async/Await Blows Promises Away (Tutorial) → (via)

Elsewhere , , 2 Comments