Skip to content
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

Make loop optional #110

Closed
wants to merge 1 commit into from

Conversation

WyriHaximus
Copy link
Contributor

No description provided.

Copy link
Owner

@clue clue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WyriHaximus Thanks for bringing this up, this definitely helps reviewing reactphp/event-loop#226 and seeing its real-world impact on existing code!

I think making the LoopInterface optional and having it default to the global loop makes perfect sense. This definitely helps with making the code more streamlined and at the same time also avoids any BC breaks with existing consumers (unlike #109).

As such, I think the changes suggested in here make perfect sense as-is once the upstream PR merged. If anything, I would like to see a way to simplify Loop::get()->run() (and friends) in the examples, but I think this is also best discussed in the upstream PR.

For the reference, the build errors are unrelated to the changes in this PR. I'll look into an update to address this asap 👍

@clue clue marked this pull request as ready for review June 15, 2021 06:51
@clue clue marked this pull request as draft June 15, 2021 06:52
@clue clue mentioned this pull request Jun 26, 2021
@clue clue closed this in #114 Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants