Implemented by classes that contain some form of cancellation logic.
Execute the cancellation logic.
Whether the cancel() method has already been called and the cancellation logic successfully executed.
cancel()