title: Espresso idlingResource - how to change how frequent the check for idling occurs
body: <p>I am showing a few loading dialogs. they sort of flash because of different network calls so there are times my idling resource will report that is it idle now but really the loading dialog just got dismissed by one network call but then triggered again by another network call.  Lets take a look my resource:</p>
  
  <pre><code>public class LoadingDialogIdlingResource implements IdlingResource {
      private final FragmentManager manager;
      private final String tag;
      private ResourceCallback resourceCallback;
  
      public LoadingDialogIdlingResource(FragmentManager manager, String tag) {
          this.manager = manager;
          this.tag = tag;
      }
  
      @Override
      public String getName() {
          return LoadingDialogIdlingResource.class.getName() + ":" + tag;
      }
  
      @Override
      public boolean isIdleNow() {
        //this is being called to quickly, i want to slow it down without suspending the entire thread
          manager.executePendingTransactions();
          boolean idle = (manager.findFragmentByTag(tag) == null);
          Timber.d("check if idle:" + idle);
  
          if (idle) {
              resourceCallback.onTransitionToIdle();
          }
          return idle;
      }
  
      @Override
      public void registerIdleTransitionCallback(ResourceCallback resourceCallback) {
          this.resourceCallback = resourceCallback;
      }
  }
  </code></pre>
  
  <p>here is what i have tried so far:</p>
  
  <pre><code>IdlingPolicies.setIdlingResourceTimeout(45000L,TimeUnit.MICROSECONDS);
  </code></pre>
  
  <p>but this is not what i want this is the timeout for the system. i just want to slow down how often the system checks if its idleNow by a second. So to be clear, im looking for a way to slow down the check in isIdleNow() method. </p>