-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add warning log for blocking futures #45
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
Conversation
I'm OK with this feature, and also agree that we should put it behind a feature flag. The only reason I find it difficult to approve is that I don't entirely understand it 😬, and would like to avoid And in any case, I'd like to see a test for this behavior... not sure how that can be staged 🤔. |
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.
I think it is mergeable (as it is an opt-in feature)
Added a warning log for blocking genservers. It's behind a feature flag
"warn-on-block"
and includes an example. To run the example, runcargo run -F warn-on-block --bin busy_genserver_warning