-
Notifications
You must be signed in to change notification settings - Fork 283
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
Use non-blocking zmq Poller #1023
Conversation
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.
Failures are unrelated, see #1024.
Pinning |
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.
👍 to the headline Poller-related change, but the unrelated get_msg type change isn't right, I think.
jupyter_client/channels.py
Outdated
@@ -220,7 +220,7 @@ def _recv(self, **kwargs: t.Any) -> t.Dict[str, t.Any]: | |||
ident, smsg = self.session.feed_identities(msg) | |||
return self.session.deserialize(smsg) | |||
|
|||
def get_msg(self, timeout: t.Optional[float] = None) -> t.Dict[str, t.Any]: | |||
def get_msg(self, timeout: t.Optional[int] = None) -> t.Dict[str, t.Any]: |
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.
This should accept a float. get_msg(timeout=0.25)
is valid. The cast to int should happen after multiplying by 1000 to get ms.
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.
It would be great to see this released :) Is the timeout in one of the Windows tests related? |
I don't think it's related. I'd like to merge but I cannot bypass the rules. Maybe @blink1073 can help? |
Fixes #1022