public final boolean cancel ( final int id , final boolean mayInterrupt ) { //noinspection SimplifiableIfStatement if ( mUntaggedRequests . contains ( id ) || mTaggedRequests . containsValue ( id ) ) { return RunningOperationStorage . getInstance ( ) . cancel ( id , mayInterrupt ) ; } else { return false ; } }
Cancels operation launch by its id . May not physically kill the background thread but it is guaranteed that the result of the operation will not be delivered to any ServiceConnector .