Skip to content

simplify wait_readable loop + notify_closing#31

Merged
davidbrochart merged 18 commits intoQuantStack:mainfrom
graingert:simplify-wait-readable-loop
Nov 14, 2025
Merged

simplify wait_readable loop + notify_closing#31
davidbrochart merged 18 commits intoQuantStack:mainfrom
graingert:simplify-wait-readable-loop

Conversation

@graingert
Copy link
Copy Markdown
Contributor

@graingert graingert commented Mar 18, 2025

depends on agronholm/anyio#896

@graingert graingert force-pushed the simplify-wait-readable-loop branch from 59898fb to ac08333 Compare March 18, 2025 09:34
@graingert graingert force-pushed the simplify-wait-readable-loop branch from d6d000d to 8ec402b Compare March 18, 2025 10:35
@graingert graingert changed the title simplify wait_readable loop simplify wait_readable loop + notify_closing Mar 18, 2025
Comment thread .github/workflows/test.yml Outdated
@graingert graingert closed this Apr 14, 2025
@graingert graingert reopened this Apr 14, 2025
Comment thread src/zmq_anyio/_socket.py
Comment thread src/zmq_anyio/_socket.py Outdated
@graingert graingert closed this Apr 14, 2025
@graingert graingert reopened this Apr 14, 2025
@graingert graingert marked this pull request as ready for review April 14, 2025 11:56
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
@graingert
Copy link
Copy Markdown
Contributor Author

@davidbrochart this is ready for review

Comment thread tests/conftest.py

@pytest.fixture
def sockets(contexts):
async def sockets(contexts):
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Member

@davidbrochart davidbrochart left a 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!

@davidbrochart davidbrochart merged commit bfb9ffc into QuantStack:main Nov 14, 2025
24 checks passed
@graingert graingert deleted the simplify-wait-readable-loop branch November 14, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants