(self)
shutdown web server
shutdown web server
shutdown web server
async def cancel(self):
        '''
        shutdown web server
        '''
        if self.app:
            await self.app.shutdown()
            await self.app.cleanup()
        if self.web_task and not self.web_task.done():
            self.web_task.cancel()
async def cancel ( self ) : if self . app : await self . app . shutdown ( ) await self . app . cleanup ( ) if self . web_task and not self . web_task . done ( ) : self . web_task . cancel ( )