Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for timeGetWith0Timeout (0.2 sec)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

          try {
            facade.get();
            r++;
          } catch (CancellationException e) {
            r += 2;
          }
        }
        return r;
      }
    
      @Benchmark
      public long timeGetWith0Timeout(long reps) throws Exception {
        Facade<?> f = notDoneFuture;
        long r = 0;
        for (int i = 0; i < reps; i++) {
          try {
            f.get(0, TimeUnit.SECONDS);
            r += 1;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jul 16 17:22:27 GMT 2019
    - 3.6K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

          try {
            facade.get();
            r++;
          } catch (CancellationException e) {
            r += 2;
          }
        }
        return r;
      }
    
      @Benchmark
      public long timeGetWith0Timeout(long reps) throws Exception {
        Facade<?> f = notDoneFuture;
        long r = 0;
        for (int i = 0; i < reps; i++) {
          try {
            f.get(0, TimeUnit.SECONDS);
            r += 1;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 16 17:22:27 GMT 2019
    - 3.6K bytes
    - Viewed (0)
Back to top