Skip to content
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

Enhancement: Trio compatible event-emitters #1666

Merged
merged 4 commits into from May 13, 2023
Merged

Conversation

provinzkraut
Copy link
Member

The changes introduced in #1635 allow a refactoring of event emitters to be trio-compatible, by removing asyncio.Task and asyncio.Queue and replacing them with task groups and streams.

Additional changes:

  • BaseEventEmitterBackend now inherits from AbstractAsyncContextManager to make use of the lifespan context manager. The on_startup and on_shutdown methods have been subsequently removed.

@provinzkraut provinzkraut requested a review from a team as a code owner May 13, 2023 13:00
@provinzkraut provinzkraut changed the title Encancehemtn: Trio compatible event-emitters Enhancement: Trio compatible event-emitters May 13, 2023
@sonarcloud
Copy link

sonarcloud bot commented May 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.1% 97.1% Coverage
0.0% 0.0% Duplication

@provinzkraut provinzkraut merged commit f1f440a into main May 13, 2023
12 of 13 checks passed
@provinzkraut provinzkraut deleted the events-anyio-compatible branch May 13, 2023 14:21
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.

None yet

2 participants