private void checkIfDomSignaldDelegateReady() {
    if (threadPoolExecutor != null && !threadPoolExecutor.isPaused()) return;

    String warning =
        "WARNING did not receive delegate ready callback from DOM after "
            + CDV_LOCATION_MANAGER_DOM_DELEGATE_TIMEOUT
            + " seconds!";
    debugWarn(warning);

    webView.sendJavascript("console.warn('" + warning + "')");
  }
 private void resumeEventPropagationToDom() {
   checkEventQueue();
   threadPoolExecutor.resume();
 }
 private void pauseEventPropagationToDom() {
   checkEventQueue();
   threadPoolExecutor.pause();
 }