private void clearUtteranceCompletionActions(boolean execute){
  if (!execute) {
    mUtteranceCompleteActions.clear();
    return;
  }
  while (!mUtteranceCompleteActions.isEmpty()) {
    final UtteranceCompleteRunnable runnable=mUtteranceCompleteActions.poll().runnable;
    if (runnable != null) {
      mHandler.post(new CompletionRunner(runnable,STATUS_INTERRUPTED));
    }
  }
}

private void clearUtteranceCompletionActions ( boolean execute ) { if ( ! execute ) { mUtteranceCompleteActions . clear ( ) ; return ; } while ( ! mUtteranceCompleteActions . isEmpty ( ) ) { final UtteranceCompleteRunnable runnable = mUtteranceCompleteActions . poll ( ) . runnable ; if ( runnable != null ) { mHandler . post ( new CompletionRunner ( runnable , STATUS_INTERRUPTED ) ) ; } } }
clears ( and optionally posts ) all pending completion actions .
