addCancelable

Adds a Cancelable that will be called when the pending result is canceled. If the pending result is already canceled the operation will immediately be canceled.

Parameters

cancelable

The instance that implements the Cancelable interface.