Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for Interruption (0.05 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        inFunction.await();
        futureResult.cancel(true);
        shouldCompleteFunction.countDown();
        assertThrows(CancellationException.class, () -> futureResult.get());
        // TODO(cpovirk): implement interruption, updating this test:
        // https://github.com/google/guava/issues/1989
        assertEquals(1, gotException.getCount());
        // gotException.await();
        service.shutdown();
        service.awaitTermination(30, SECONDS);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        inFunction.await();
        futureResult.cancel(true);
        shouldCompleteFunction.countDown();
        assertThrows(CancellationException.class, () -> futureResult.get());
        // TODO(cpovirk): implement interruption, updating this test:
        // https://github.com/google/guava/issues/1989
        assertEquals(1, gotException.getCount());
        // gotException.await();
        service.shutdown();
        service.awaitTermination(30, SECONDS);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

                break;
            }
            throw new AssertionError(status);
          }
          future.addListener(() -> provideValueAndCloser(consumer, this), executor);
        }
    
        @SuppressWarnings("Interruption") // We are propagating an interrupt from a caller.
        boolean cancel(boolean mayInterruptIfRunning) {
          logger.get().log(FINER, "cancelling {0}", closingFutureToString());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
Back to Top