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

feat: enable user to define event queue and session #33

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

dbluhm
Copy link
Member

@dbluhm dbluhm commented Nov 21, 2022

This PR cleans up the management of async contexts using an AsyncExitStack from python's contextlib. Additionally, this PR enables the user to specify a separately managed event queue and/or client session. This will help serve needs where we're reusing sessions managed by other components.

This also reuses the client session throughout the lifetime of the controller object.

Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Copy link
Contributor

@mepeltier mepeltier left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@mepeltier mepeltier merged commit 66d4ba9 into main Nov 21, 2022
@dbluhm dbluhm deleted the feature/user-queue-and-session branch February 6, 2023 14:51
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