asyncio: Add Transport.is_closing()

See https://github.com/python/asyncio/pull/291 for details.
This commit is contained in:
Yury Selivanov 2015-11-16 12:43:21 -05:00
parent da32d26ab9
commit 5bb1afb332
11 changed files with 36 additions and 14 deletions

View file

@ -65,6 +65,9 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
def _set_extra(self, sock):
self._extra['pipe'] = sock
def is_closing(self):
return self._closing
def close(self):
if self._closing:
return