Closed
Description
Documentation
https://docs.python.org/3/library/asyncio-stream.html - assuming that await stream.wait_closed()
should be called after all uses of .close()
- which both the close()
and wait_closed()
methods both heavily suggest should be the case - then all examples on this page should also demonstrate this practice. At present only the first one (at the top) does: the examples at the bottom don't use wait_closed()
.
The documentation for wait_closed also doesn't really say why it should always be used beyond "to wait until the underlying connection is closed" which doesn't really explain anything.
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done