Generators and Asynchronous Programming: How-To
summary
Explains how to use PHP generators to write asynchronous-style code without callbacks; shows the problem of managing asynchronous operations and demonstrates using generator-based control flow to simplify async programming. Covers practical techniques and examples in PHP for implementing non-blocking workflows with generators.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:04PHP async programming
- 3:14Tea for two example
- 8:29Event loop pattern
- 12:39PHP generators basics
- 17:55Generators for async
- 22:53Promises and callbacks
- 26:29Async: generators vs callbacks
- 28:38When to use async in PHP
- 30:46Choosing event loop
- 31:48Tornado demo
- 36:04Misconceptions
- 37:07Pitfalls and next steps
- 38:03Q&A
