Issue 32391: Add StreamWriter.wait_closed() - Python tracker (original) (raw)

Issue32391

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/76572

classification

Title: Add StreamWriter.wait_closed()
Type: enhancement Stage: resolved
Components: asyncio, Library (Lib) Versions: Python 3.7

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, nitishch, njs, yselivanov
Priority: normal Keywords: patch

Created on 2017-12-20 19:12 by asvetlov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5281 merged asvetlov,2018-01-23 08:51
Messages (3)
msg308780 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2017-12-20 19:12
Without the method there is no possibility to wait for actual writer closing (it's performed at least on next loop iteration, and even later for SSL transports). Without waiting for actual closing writing tests is a pain: user should either add asyncio.sleep() after writer closing or suppress many warnings about unclosed resources.
msg308781 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-20 19:13
We've discussed this before, please go ahead.
msg310640 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2018-01-24 22:30
New changeset fe133aad52222949db7309c26c58b066c22e714e by Andrew Svetlov in branch 'master': bpo-32391: Implement StreamWriter.wait_closed() (#5281) https://github.com/python/cpython/commit/fe133aad52222949db7309c26c58b066c22e714e
History
Date User Action Args
2022-04-11 14:58:55 admin set github: 76572
2018-05-29 18:35:44 yselivanov link issue31491 superseder
2018-01-24 23:21:26 asvetlov set status: open -> closedresolution: fixedstage: patch review -> resolved
2018-01-24 22:30:32 asvetlov set messages: +
2018-01-23 08:51:40 asvetlov set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest5127>
2018-01-21 09:44:54 njs set nosy: + njs
2017-12-22 21:06:09 nitishch set nosy: + nitishch
2017-12-21 09:28:56 asvetlov link issue28212 superseder
2017-12-20 19:13:19 yselivanov set type: enhancementmessages: +
2017-12-20 19:12:25 asvetlov create

Supported by The Python Software Foundation,
Powered by Roundup

Copyright © 1990-2022, Python Software Foundation
Legal Statements