-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Wrong defer watcher try / catch #74
Comments
That |
It makes handling easier, but it won't execute any I/O watchers if there's always one defer throwing. |
I can't imagine that happening in an actual app. |
Same here, that'd be an extreme edge case, but it might happen, as we use |
I see no reason why this shouldn't be changed... |
@bwoebi After thinking about this, I realized an app might have a IO, timer, or signal that continually throws that might block another watcher from ever executing that would stop the cycle. I'll update everywhere watcher callbacks are invoked to be wrapped by their own |
Specify exact guarantees when a callback has to be called
amp/lib/Loop/Driver.php
Line 112 in 8f903b6
try
/catch
around the$callback
invocation, not around theforeach
.The text was updated successfully, but these errors were encountered: