class_docstr: A client that is scoped to a specific job.
  
  .. versionadded:: 1.11.0
docstr: Cancels the associated job.
  
  :return: A CompletableFuture for canceling the associated job.
  
  .. versionadded:: 1.11.0
docstr_tok: ["Cancels","the","associated","job",".",":","return",":","A","CompletableFuture","for","canceling","the","associated","job",".","..","versionadded",":",":","1.11.0"]
code: def cancel(self) -> CompletableFuture:
      """
      Cancels the associated job.
  
      :return: A CompletableFuture for canceling the associated job.
  
      .. versionadded:: 1.11.0
      """
      return CompletableFuture(self._j_job_client.cancel())
  
file_path: flink/flink-python/pyflink/common/job_client.py
imports: from pyflink.common.completable_future import CompletableFuture
  from pyflink.common.job_execution_result import JobExecutionResult
  from pyflink.common.job_id import JobID
  from pyflink.common.job_status import JobStatus
label_desc: Use image node_id 4 for calling the JobClient obj's underlying member method code with example usage: obj.cancel() and returns: CompletableFuture