Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 60 for uninterruptible (0.07 seconds)

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

    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import org.jspecify.annotations.Nullable;
    
    /** Emulation of Uninterruptibles in GWT. */
    public final class Uninterruptibles {
    
      private Uninterruptibles() {}
    
      @CanIgnoreReturnValue
      public static <V extends @Nullable Object> V getUninterruptibly(Future<V> future)
          throws ExecutionException {
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

         * interrupt before, during, or after runInterruptibly() (unless it produced an
         * InterruptedException caught above) can linger and affect listeners.
         */
      }
    
      /**
       * Called before runInterruptibly - if true, runInterruptibly and afterRanInterruptibly will not
       * be called.
       */
      abstract boolean isDone();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

      }
    
      static final class SlowChannel extends AbstractInterruptibleChannel {
        final CountDownLatch exitClose = new CountDownLatch(1);
    
        @Override
        protected void implCloseChannel() {
          Uninterruptibles.awaitUninterruptibly(exitClose);
        }
    
        void doBegin() {
          super.begin();
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

      }
    
      static final class SlowChannel extends AbstractInterruptibleChannel {
        final CountDownLatch exitClose = new CountDownLatch(1);
    
        @Override
        protected void implCloseChannel() {
          Uninterruptibles.awaitUninterruptibly(exitClose);
        }
    
        void doBegin() {
          super.begin();
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        } else {
          assertTrue(desc, isBoolean(method));
        }
    
        switch (method.getExceptionTypes().length) {
          case 0:
            assertFalse(desc, isInterruptible(method));
            break;
          case 1:
            assertTrue(desc, isInterruptible(method));
            break;
          default:
            fail(desc);
        }
    
        if (isEnterIf(method)) {
          assertTrue(desc, isGuarded(method));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit, boolean amInterruptible)
          throws Exception {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
    
        Future<T> future = executor.submit(callable);
    
        try {
          return amInterruptible
              ? future.get(timeoutDuration, timeoutUnit)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import static com.google.common.util.concurrent.Uninterruptibles.awaitTerminationUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.joinUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.putUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.takeUninterruptibly;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        } else {
          assertTrue(desc, isBoolean(method));
        }
    
        switch (method.getExceptionTypes().length) {
          case 0:
            assertFalse(desc, isInterruptible(method));
            break;
          case 1:
            assertTrue(desc, isInterruptible(method));
            break;
          default:
            fail(desc);
        }
    
        if (isEnterIf(method)) {
          assertTrue(desc, isGuarded(method));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import static com.google.common.util.concurrent.Uninterruptibles.awaitTerminationUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.joinUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.putUninterruptibly;
    import static com.google.common.util.concurrent.Uninterruptibles.takeUninterruptibly;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java

      @Override
      public void run() {
        T result = null;
        Throwable error = null;
        if (isDone()) {
          return;
        }
        try {
          result = runInterruptibly();
        } catch (Throwable t) {
          error = t;
        }
        if (error == null) {
          // The cast is safe because of the `run` and `error` checks.
          afterRanInterruptiblySuccess(uncheckedCastNullableTToT(result));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.6K bytes
    - Click Count (0)
Back to Top