PHP Fibers: Cooperative Concurrency for WordPress Background Tasks
PHP Fibers, parallel HTTP requests and background work in WordPress PHP 8.1 added Fibers, and articles promise “concurrency for WordPress” since then. A Fiber is a function that can pause itself and be resumed later; it does not run in parallel with anything. Without an event loop that does non-blocking I/O while fibers wait, they…