PHP Architect · Vol 17, Issue 1 · January 2018
Don't Wait; Generate!
by Ian Littman
Generators introduce sanity to the world of asynchronous, concurrent execution within a single process. In this article, we'll look at what generators are, how they show up in PHP, and how they make concurrency a bit more sane compared to callback and promise alternatives. Then, we'll see what a PHP application looks like when built on top of a generator-based framework instead of the typical "run one process per request and block on I/O" approach.
The full article is in PHP Architect Vol 17, Issue 1. Subscribe to read it and every new issue.