def closed(self):
        """True if connection is closed."""
        closed = self._closing or self._closed
        if not closed and self._reader and self._reader.at_eof():
            self._closing = closed = True
            self._loop.call_soon(self._do_close, None)
        return closed
def closed ( self ) : closed = self . _closing or self . _closed if not closed and self . _reader and self . _reader . at_eof ( ) : self . _closing = closed = True self . _loop . call_soon ( self . _do_close , None ) return closed
True if connection is closed.