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
[Process] Add support for Fiber #43678
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Glad to see that you consider using Fibers!
My point is that it could be interesting to define a contract about "how to use safely a SF Process in a Fiber". I have no particular idea about this, I'm not sure if Symfony needs a complete async tools set, but I'm just wondering if this Anyway, this PR has my full attention |
Thanks a lot for your feedback
The process will last, but it's exactly the same as when you write the follow code
So IMHO, nothing has to be done here
What would be the use case to resume it with
Indeed, I was not sure about the use case, but actually, it eases the async handling of process.
I totally agree with that 👍🏼, and more generally in Symfony
Yes, it can. I said that, because we keeps reading issue where people do really strange things :) I guess it's how OSS works :) |
Since it's possible, we can expect that someone will try
|
What's the status here? @lyrixx? |
I think there is consensus yet on how to add fibrer support in Symfony. Let's close it But if someone want it, we could also merge it. |
Example:
(Note: The loop is very naive, but it's for demo purpose)
process-fiber.mp4