async def close(self):
self.server.close()<EOL>tasks = [self.server.wait_closed()]<EOL>for connection in self.connections.values():<EOL><INDENT>connection._dispatcher.cancel()<EOL>tasks.append(connection._dispatcher)<EOL><DEDENT>logger.info("<STR_LIT>", len(tasks))<EOL>await asyncio.wait(tasks)<EOL>
:py:func:`asyncio.coroutine`

Shutdown the server and close all connections.