code: def run(self, endpoint: str, loop: AbstractEventLoop = None):
          
          if not loop:
              loop = asyncio.get_event_loop()
  
          try:
              loop.run_until_complete(self.run_async(endpoint))
          except KeyboardInterrupt:
              self._shutdown()
docs: Run server main task.
  
          :param endpoint: Socket endpoint to listen to, e.g. "tcp://*:1234"
          :param loop: Event loop to run server in (alternatively just use run_async method)