Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for interruptTask (0.06 sec)

  1. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

      /**
       * Any interruption that happens as a result of calling interruptTask will arrive before this
       * method is called. Complete Futures here.
       */
      abstract void afterRanInterruptiblySuccess(@ParametricNullness T result);
    
      /**
       * Any interruption that happens as a result of calling interruptTask will arrive before this
       * method is called. Complete Futures here.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

              }
            };
        Thread runner = new Thread(task);
        runner.start();
        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, () -> task.interruptTask());
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        /*
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        }
      }
    
      private static final class InterruptibleFuture extends AbstractFuture<String> {
        boolean interruptTaskWasCalled;
    
        @Override
        protected void interruptTask() {
          assertFalse(interruptTaskWasCalled);
          interruptTaskWasCalled = true;
        }
      }
    
      private static boolean isWindows() {
        return OS_NAME.value().startsWith("Windows");
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        }
      }
    
      private static final class InterruptibleFuture extends AbstractFuture<String> {
        boolean interruptTaskWasCalled;
    
        @Override
        protected void interruptTask() {
          assertFalse(interruptTaskWasCalled);
          interruptTaskWasCalled = true;
        }
      }
    
      private static boolean isWindows() {
        return OS_NAME.value().startsWith("Windows");
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top