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

Support a mix of blocking and non-blocking PHP #37

Open
bertvandepoel opened this issue Jul 13, 2016 · 2 comments
Open

Support a mix of blocking and non-blocking PHP #37

bertvandepoel opened this issue Jul 13, 2016 · 2 comments

Comments

@bertvandepoel
Copy link
Contributor

When updating a progress or pulse bar it would be very convenient if it was possible to still use blocking PHP.

Specifically, it is quite easy to imagine a developer wanting to display zenity progress on a large set of SQL queries, updating the progress bar as he goes through every step. Currently this is only possible by manually ticking the loop. It would be nice if there could be some kind of support for this.

@clue
Copy link
Owner

clue commented Jul 13, 2016

I agree that this would be convenient, but I'm unsure if this is actually feasible..

The current waitFor() method is out of place with the rest of this library, so perhaps it's best to remove this in a future version? Instead, I would suggest we give at least two examples that build on top of https://github.com/clue/php-block-react:

  1. wait for a zenity to quit
  2. start zenity, do blocking work, update zenity, do blocking work, close zenity

@bertvandepoel
Copy link
Contributor Author

Yeah, those seem much more in place. I think a clear distinction between those two strategies would also make the library much less confusing for new users to try out.

And of course it would be convenient for the kind of work I do as well.

@clue clue added this to the v0.5.0 milestone Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants