class_docstr: A :class:`~pyflink.table.TableResult` is the representation of the statement execution result.
  
  .. versionadded:: 1.11.0
class_docstr_tok: ["A",":","class",":","`","~pyflink.table.TableResult","`","is","the","representation","of","the","statement","execution","result",".","..","versionadded",":",":","1.11.0"]
docstr: Wait if necessary for at most the given time (milliseconds) for the data to be ready.
  
  For a select operation, this method will wait until the first row can be accessed locally.
  For an insert operation, this method will wait for the job to finish,
  because the result contains only one row.
  For other operations, this method will return immediately,
  because the result is already available locally.
  
  .. versionadded:: 1.12.0
docstr_tok: ["Wait","if","necessary","for","at","most","the","given","time","(","milliseconds",")","for","the","data","to","be","ready",".","For","a","select","operation",",","this","method","will","wait","until","the","first","row","can","be","accessed","locally",".","For","an","insert","operation",",","this","method","will","wait","for","the","job","to","finish",",","because","the","result","contains","only","one","row",".","For","other","operations",",","this","method","will","return","immediately",",","because","the","result","is","already","available","locally",".","..","versionadded",":",":","1.12.0"]
code: def wait(self, timeout_ms: int = None):
      """
      Wait if necessary for at most the given time (milliseconds) for the data to be ready.
  
      For a select operation, this method will wait until the first row can be accessed locally.
      For an insert operation, this method will wait for the job to finish,
      because the result contains only one row.
      For other operations, this method will return immediately,
      because the result is already available locally.
  
      .. versionadded:: 1.12.0
      """
      if timeout_ms:
          TimeUnit = get_gateway().jvm.java.util.concurrent.TimeUnit
          get_method(self._j_table_result, "await")(
              timeout_ms, TimeUnit.MILLISECONDS
          )
      else:
          get_method(self._j_table_result, "await")()
  
imports: from typing import Optional
  from py4j.java_gateway import get_method
  from pyflink.common.types import RowKind
  from pyflink.common import Row
  from pyflink.common.job_client import JobClient
  from pyflink.java_gateway import get_gateway
  from pyflink.table.result_kind import ResultKind
  from pyflink.table.table_schema import TableSchema
  from pyflink.table.types import _from_java_data_type
  from pyflink.table.utils import pickled_bytes_to_python_converter
label_desc: Use image node_id 3 for calling the TableResult obj's underlying member method code with example usage: obj.wait(timeout_ms) without return types