Skip to content

Implement async context manager protocol for AIO clients#2180

Open
lpsinger wants to merge 1 commit intoconfluentinc:masterfrom
lpsinger:async-context-manager
Open

Implement async context manager protocol for AIO clients#2180
lpsinger wants to merge 1 commit intoconfluentinc:masterfrom
lpsinger:async-context-manager

Conversation

@lpsinger
Copy link
Contributor

When AIOProducer or AIOConsumer is used as the target of a with: statement, automatically close the connection at the end of the context.

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@lpsinger lpsinger requested review from a team and MSeal as code owners January 29, 2026 03:38
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ lpsinger
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

When AIOProducer or AIOConsumer is used as the target of a `with:`
statement, automatically close the connection at the end of the
context.
@lpsinger lpsinger force-pushed the async-context-manager branch from 698ad20 to c6e00e6 Compare January 29, 2026 03:47
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.

1 participant