code: def _start_server(bindaddr, port, hostname, folder):
      
      import asyncio
      from .httpserver import HttpProtocol
      loop = asyncio.get_event_loop()
      coroutine = loop.create_server(lambda: HttpProtocol(hostname, folder),
                                     bindaddr,
                                     port)
      server = loop.run_until_complete(coroutine)
  
      print('Starting server on {}'.format(server.sockets[0].getsockname()))
      try:
          loop.run_forever()
      except KeyboardInterrupt:
          pass
docs: Starts an asyncio server