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
Related
- Fibers
- Yield Generator
- Asynchronous
- Spiral
- Thread
- Blocking Wait
- Stealth Generator
- C10K
- Edge Triggered
- Fire-and-forget
- Non-blocking
- One-shot
- Asynchronous Markup Protocol (AMP)
- Channel
- Green Thread
- ReactPHP