class_docstr: A Future that may be explicitly completed (setting its value and status), supporting dependent
  functions and actions that trigger upon its completion.
  
  When two or more threads attempt to set_result, set_exception, or cancel a CompletableFuture,
  only one of them succeeds.
  
  .. versionadded:: 1.11.0
class_docstr_tok: ["A","Future","that","may","be","explicitly","completed","(","setting","its","value","and","status",")",",","supporting","dependent","functions","and","actions","that","trigger","upon","its","completion",".","When","two","or","more","threads","attempt","to","set_result",",","set_exception",",","or","cancel","a","CompletableFuture",",","only","one","of","them","succeeds",".","..","versionadded",":",":","1.11.0"]
docstr: Returns true if this CompletableFuture was cancelled before it completed normally.
  
  .. versionadded:: 1.11.0
docstr_tok: ["Returns","true","if","this","CompletableFuture","was","cancelled","before","it","completed","normally",".","..","versionadded",":",":","1.11.0"]
code: def cancelled(self) -> bool:
      """
      Returns true if this CompletableFuture was cancelled before it completed normally.
  
      .. versionadded:: 1.11.0
      """
      return self._j_completable_future.isCancelled()
  
file_path: flink/flink-python/pyflink/common/completable_future.py
imports: from py4j.protocol import Py4JJavaError
  from pyflink.util.exceptions import convert_py4j_exception
label_desc: Use image node_id 3 for calling the CompletableFuture obj's underlying member method code with example usage: obj.cancelled() and returns: self