@Override
          public void onReceive(Context ctx, Intent intent) {
            Network[] networks = connManager.getAllNetworks();
            for (Network network : networks) {
              NetworkInfo info = connManager.getNetworkInfo(network);
              if (info != null && info.isAvailable()) {
                // not done yet
                return;
              }
            }

            future.set(null);
          }
How long we're willing to wait for a job to run after it becomes eligible.
jobdispatcher/src/androidTest/java/com/firebase/jobdispatcher/AirplaneModeAndroidTest.java