addOnCancel

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

Parameters

cancelable

The instance that implements the Cancelable interface.