original_docstring: Start the server in the background.
  
      The function returns only when the server has successfully started.
  
      Args:
          socket_handler: function invoked on each request
          runtime_dir: directory for holding socket/pid file and used as the
              working directory for the server
          server_idle_timeout: timeout after which server will shutdown if no
              active requests
          user_data: JSON-serializable object put into server metadata file
      Raises:
          If there are any issues starting the server errors are re-raised.
      
docstring: Start the server in the background.
  The function returns only when the server has successfully started.
  
  function invoked on each request
  runtime_dir: directory for holding socket/pid file and used as the
  working directory for the server
  server_idle_timeout: timeout after which server will shutdown if no
  active requests
  user_data: JSON-serializable object put into server metadata file
  Raises:
  If there are any issues starting the server errors are re-raised.
docstring_tokens: Start the server in the background . The function returns only when the server has successfully started . function invoked on each request runtime_dir : directory for holding socket / pid file and used as the working directory for the server server_idle_timeout : timeout after which server will shutdown if no active requests user_data : JSON - serializable object put into server metadata file Raises : If there are any issues starting the server errors are re - raised .
code: def run(
      socket_handler,
      runtime_dir: RuntimeDir,
      server_idle_timeout: Optional[float],
      user_data: Optional[Any],
  ):
      """Start the server in the background.
  
      The function returns only when the server has successfully started.
  
      Args:
          socket_handler: function invoked on each request
          runtime_dir: directory for holding socket/pid file and used as the
              working directory for the server
          server_idle_timeout: timeout after which server will shutdown if no
              active requests
          user_data: JSON-serializable object put into server metadata file
      Raises:
          If there are any issues starting the server errors are re-raised.
      """
      logger.debug("Starting server launcher")
  
      daemon_options = {
          # This ensures that relative files are created in the context of the
          # actual runtime dir and not at the path that happens to exist at the
          # time.
          "working_directory": runtime_dir.fileno()
      }
  
      target = functools.partial(
          _run_server, socket_handler, server_idle_timeout, user_data
      )
      return run_in_process(daemonize, args=(target, daemon_options), allow_detach=True)
code_tokens: def run ( socket_handler , runtime_dir : RuntimeDir , server_idle_timeout : Optional [ float ] , user_data : Optional [ Any ] , ) : logger . debug ( "Starting server launcher" ) daemon_options = { "working_directory" : runtime_dir . fileno ( ) } target = functools . partial ( _run_server , socket_handler , server_idle_timeout , user_data ) return run_in_process ( daemonize , args = ( target , daemon_options ) , allow_detach = True )
short_docstring: Start the server in the background.
short_docstring_tokens: Start the server in the background .
comment: """Start the server in the background.
  
      The function returns only when the server has successfully started.
  
      Args:
          socket_handler: function invoked on each request
          runtime_dir: directory for holding socket/pid file and used as the
              working directory for the server
          server_idle_timeout: timeout after which server will shutdown if no
              active requests
          user_data: JSON-serializable object put into server metadata file
      Raises:
          If there are any issues starting the server errors are re-raised.
      """$SEP$# This ensures that relative files are created in the context of the$SEP$# actual runtime dir and not at the path that happens to exist at the$SEP$# time.