public final boolean cancel ( @ NonNull final String tag , final boolean mayInterrupt ) { final Integer id = mTaggedRequests . get ( tag ) ; //noinspection SimplifiableIfStatement if ( id != null ) { return cancel ( id , mayInterrupt ) ; } else { return false ; } }
Cancels operation launch by its tag . May not physically kill the background thread but it is guaranteed that the result of the operation will not be delivered to any ServiceConnector .