Skip to content

Why do examples and docs not show using context managers for the producer and consumer? #925

Answered by ods
MicaelJarniac asked this question in Q&A
Discussion options

You must be logged in to vote

The async with approach is usually preferable. It was just added later and documentation hasn't been updated to reflect it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MicaelJarniac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants