Async¶
The async keyword is used in programming, and especially in languages like JavaScript, Python, and C#, to define a function that runs asynchronously. It means that it can perform operations without blocking the rest of the program.
PHP does not support a notion of async. The closest feature is called fiber or parallel processing, yet it is quite different from asynchronous. Generators also provide a pseudo-asynchronous processing.
<?php
// Starting another process for parallel processing
shell_exec('php other.php &');
?>
See also TrueAsync.
Related : Fibers, Generator, Asynchronous, Fibers, Spiral, Thread, Blocking Wait, Stealth Generator
Related packages : amphp/amp