Archive for the ‘async functions’ Category

Simplifying Asynchronous Coding with Async Functions

Posted on: No Comments
The debut of Promises in JavaScript has lit the internet on fire—they help developers break out of callback hell and solve a lot of problems that have plagued the asynchronous code of JavaScript programmers everywhere. Promises are far from flawless,...

Writing Async Libraries – Let’s Convert HTML to PDF

Posted on: No Comments
I can barely remember a conference where the topic of asynchronous PHP wasn't discussed. I am pleased that it's so frequently spoken about these days. There's a secret these speakers aren't telling, though... Making asynchronous servers, resolving dom...

An Introduction to jQuery’s Deferred Objects

Posted on: No Comments
For a long time, JavaScript developers have used callback functions to perform several tasks. A very common example is to add a callback via the addEventListener() function to execute various operations when an event, such as click or keypress, is fire...

Build a Superfast PHP Server in Minutes with Icicle

Posted on: No Comments
Event-based programming is a strange topic for PHP developers. In a language as procedural; events are little more than function calls. Nothing happens between events, and all meaningful code is still blocking. Languages like JavaScript show us what PH...

An Introduction into Event Loops in PHP

Posted on: No Comments
PHP developers are always waiting for something. Sometimes we’re waiting for requests to remote services. Sometimes we’re waiting for databases to return rows from a complex query. Wouldn’t it be great if we could do other things during all that ...