-
Notifications
You must be signed in to change notification settings - Fork 3
simplify wait_readable loop + notify_closing #31
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
simplify wait_readable loop + notify_closing #31
Conversation
59898fb to
ac08333
Compare
d6d000d to
8ec402b
Compare
|
@davidbrochart this is ready for review |
|
|
||
| @pytest.fixture | ||
| def sockets(contexts): | ||
| async def sockets(contexts): |
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.
Why does it have to be async?
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 sockets.close() need to be called with the same running event loop that they are opened with. A sync fixture the close will happen outside the event loop and fail
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.
👍
davidbrochart
left a comment
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.
Thanks a lot @graingert, and glad that you're back!
depends on agronholm/anyio#896