class_docstr: A handle used to make requests to the ingress deployment of an application.
  
  This is returned by `serve.run` and can be used to invoke the application from
  Python rather than over HTTP. For example:
  
  .. code-block:: python
  
      import ray
      from ray import serve
      from ray.serve.handle import RayServeSyncHandle
  
      @serve.deployment
      class Ingress:
          def __call__(self, name: str) -> str:
              return f"Hello {name}"
  
      app = Ingress.bind()
      handle: RayServeSyncHandle = serve.run(app)
  
      # Prints "Hello Mr. Magoo"
      print(ray.get(handle.remote("Mr. Magoo")))
class_docstr_tok: ["A","handle","used","to","make","requests","to","the","ingress","deployment","of","an","application",".","This","is","returned","by","`","serve.run","`","and","can","be","used","to","invoke","the","application","from","Python","rather","than","over","HTTP",".","For","example",":","..","code-block",":",":","python","import","ray","from","ray","import","serve","from","ray.serve.handle","import","RayServeSyncHandle","@","serve.deployment","class","Ingress",":","def","__call__","(","self",",","name",":","str",")","-",">","str",":","return","f","''","Hello","{","name","}","''","app","=","Ingress.bind","(",")","handle",":","RayServeSyncHandle","=","serve.run","(","app",")","#","Prints","``","Hello","Mr.","Magoo","''","print","(","ray.get","(","handle.remote","(","``","Mr.","Magoo","''",")",")",")"]
docstr: Issue an asynchronous request to the __call__ method of the deployment.
  
  Returns a Ray ObjectRef whose results can be waited for or retrieved
  using ray.wait or ray.get, respectively.
  
  .. code-block:: python
  
      obj_ref = handle.remote(*args)
      result = ray.get(obj_ref)
docstr_tok: ["Issue","an","asynchronous","request","to","the","__call__","method","of","the","deployment",".","Returns","a","Ray","ObjectRef","whose","results","can","be","waited","for","or","retrieved","using","ray.wait","or","ray.get",",","respectively",".","..","code-block",":",":","python","obj_ref","=","handle.remote","(","*","args",")","result","=","ray.get","(","obj_ref",")"]
code: def remote(self, *args, **kwargs) -> ray.ObjectRef:
      """Issue an asynchronous request to the __call__ method of the deployment.
  
      Returns a Ray ObjectRef whose results can be waited for or retrieved
      using ray.wait or ray.get, respectively.
  
      .. code-block:: python
  
          obj_ref = handle.remote(*args)
          result = ray.get(obj_ref)
  
      """
      future = self._remote(args, kwargs)
      return future.result()
  
imports: import asyncio
  import concurrent.futures
  import threading
  import warnings
  from dataclasses import dataclass
  from typing import Any, AsyncIterator, Dict, Iterator, Optional, Tuple, Union
  import ray
  from ray import serve
  from ray._raylet import GcsClient, ObjectRefGenerator
  from ray.serve._private.common import DeploymentID, RequestProtocol
  from ray.serve._private.default_impl import create_cluster_node_info_cache
  from ray.serve._private.router import RequestMetadata, Router
  from ray.serve._private.usage import ServeUsageTag
  from ray.serve._private.utils import DEFAULT, get_current_actor_id, get_random_string, is_running_in_asyncio_loop
  from ray.util import metrics
  from ray.util.annotations import Deprecated, DeveloperAPI, PublicAPI
label_desc: Use image node_id 2 for calling the RayServeSyncHandle obj's underlying member method code with example usage: obj.remote() and returns: future