-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: add warning if drop-callback is passed with a tuple #366
feat: add warning if drop-callback is passed with a tuple #366
Conversation
PR missing one of the required labels: {'dependencies', 'breaking-change', 'internal', 'bug', 'enhancement', 'documentation', 'new feature'} |
@@ -29,6 +29,13 @@ use crate::{ | |||
type RustCallback<T> = zenoh::handlers::Callback<T>; | |||
|
|||
const CHECK_SIGNALS_INTERVAL: Duration = Duration::from_millis(100); | |||
const DONE_CALLBACK_WARNING: &str = "Passing drop-callback using a tuple \ | |||
`(callback, drop-callback)` no more works in 1.0;\n\ |
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.
`(callback, drop-callback)` no more works in 1.0;\n\ | |
`(callback, drop-callback)` no longer works in 1.0;\n\ |
const DONE_CALLBACK_WARNING: &str = "Passing drop-callback using a tuple \ | ||
`(callback, drop-callback)` no more works in 1.0;\n\ | ||
`zenoh.handlers.Callback(callback, drop_callback)` must be used instead.\n\ | ||
The tuple form is reserved for passing a handler with`(callback, handler)`.\n\ |
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.
The tuple form is reserved for passing a handler with`(callback, handler)`.\n\ | |
The tuple form is reserved for passing a handler with `(callback, handler)`.\n\ |
`zenoh.handlers.Callback(callback, drop_callback)` must be used instead.\n\ | ||
The tuple form is reserved for passing a handler with`(callback, handler)`.\n\ | ||
If you are already passing a handler but having this warning wrongly displayed, \ | ||
you can silent it with:\n\ |
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.
you can silent it with:\n\ | |
you can silence it with:\n\ |
`(callback, drop-callback)` no more works in 1.0;\n\ | ||
`zenoh.handlers.Callback(callback, drop_callback)` must be used instead.\n\ | ||
The tuple form is reserved for passing a handler with`(callback, handler)`.\n\ | ||
If you are already passing a handler but having this warning wrongly displayed, \ |
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.
If you are already passing a handler but having this warning wrongly displayed, \ | |
If you are already passing a handler and this warning is still incorrectly displayed, \ |
Fixes #364