-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): Fibers support #235
Conversation
Guikingone
commented
Apr 8, 2022
•
edited
Loading
edited
Q | A |
---|---|
PHP version? | 8.0 (but available only for 8.1) |
Bundle version? | 0.9.0 |
Symfony version? | >= 5.4 |
New feature? | yes |
Bug fix? | no |
Discussion? | # ... |
|
||
_Introduced in `0.9`_ | ||
|
||
Since PHP `8.1`, you can use fibers to "fork" the current process and create an isolated process |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, Fibers are not a new syntax to fork processes. The fibers are similar to Generators and executed in the same process.
See RFC https://wiki.php.net/rfc/fibers
Since fibers exist within a single process thread, switching between fibers is significantly more performant than switching between processes or threads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.