Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wasInterrupted (0.14 sec)

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

        assertFalse(task.isDone());
        task.cancel(false);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertFalse(task.wasInterrupted());
        assertThrows(CancellationException.class, () -> getDone(task));
        verifyThreadWasNotInterrupted();
      }
    
      public void testFailed() throws Exception {
        Exception e = new Exception();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

          throws InterruptedException, TimeoutException, ExecutionException {
        assertDone(future);
        assertThat(future.isCancelled()).isTrue();
        assertThat(future.wasInterrupted()).isEqualTo(expectWasInterrupted);
    
        try {
          getDone(future);
          fail();
        } catch (CancellationException expected) {
        }
    
        try {
          getDoneFromTimeoutOverload(future);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top