Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InterruptibleTask (0.23 sec)

  1. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java

    import static com.google.common.util.concurrent.NullnessCasts.uncheckedCastNullableTToT;
    
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Emulation for InterruptibleTask in GWT. */
    @ElementTypesAreNonnullByDefault
    abstract class InterruptibleTask<T extends @Nullable Object> implements Runnable {
    
      @Override
      public void run() {
        T result = null;
        Throwable error = null;
        if (isDone()) {
          return;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 08 20:30:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

       * that the test isn't exposing a real problem with InterruptibleTask, one that could matter in
       * prod.
       */
      @AndroidIncompatible
      public void testInterruptIsSlow() throws Exception {
        final CountDownLatch isInterruptibleRegistered = new CountDownLatch(1);
        final SlowChannel slowChannel = new SlowChannel();
        final InterruptibleTask<@Nullable Void> task =
            new InterruptibleTask<@Nullable Void>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top