void replaceTaskWithResult ( int sequence , Object response ) { int index = toIndex ( sequence ) ; // If sequence is not equal then it is disposed externally if ( sequences [ index ] != sequence ) { return ; } ringItems [ index ] = response ; isTask [ index ] = false ; callableCounter -- ; }
Replaces the task with its response If the sequence does not correspond to a task then the call is ignored