Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Conversation

@JohnnyDeuss
Copy link

The subscribe context manager does not currently unsubscribe if an exception is thrown from within it.

try:
yield Subscriber(queue)
finally:
self._subscribers[channel].remove(queue)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have a unit test for it?

@alex-oleshkevich
Copy link
Contributor

Fixed in #112

@alex-oleshkevich alex-oleshkevich mentioned this pull request Apr 3, 2024
19 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants