Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RejectedExecutionException (1.2 sec)

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

                      throw new RejectedExecutionException();
                    }
                    r.run();
                  }
                });
        Runnable task =
            new Runnable() {
              @Override
              public void run() {
                numCalls.incrementAndGet();
              }
            };
        assertThrows(RejectedExecutionException.class, () -> executor.execute(task));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

            executorService.execute(this)
            success = true
          } catch (e: RejectedExecutionException) {
            failRejected(e)
          } finally {
            if (!success) {
              client.dispatcher.finished(this) // This call is no longer running!
            }
          }
        }
    
        internal fun failRejected(e: RejectedExecutionException? = null) {
          val ioException = InterruptedIOException("executor rejected")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionException;
    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import java.util.concurrent.atomic.AtomicInteger;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * be included, and it's much easier to implement the interpretation that they not be. Finally, a
       * call to {@code shutdown} or {@code shutdownNow} may result in concurrent calls to {@code
       * invokeAll/invokeAny} throwing RejectedExecutionException, although a subset of the tasks may
       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

              // thread.
              executionList.execute();
              return;
            }
    
            // TODO(lukes): handle RejectedExecutionException
            adapterExecutor.execute(
                () -> {
                  try {
                    /*
                     * Threads from our private pool are never interrupted. Threads from a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * be included, and it's much easier to implement the interpretation that they not be. Finally, a
       * call to {@code shutdown} or {@code shutdownNow} may result in concurrent calls to {@code
       * invokeAll/invokeAny} throwing RejectedExecutionException, although a subset of the tasks may
       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionException;
    import java.util.concurrent.atomic.AtomicReference;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A step in a pipeline of an asynchronous computation. When the last step in the computation is
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        }
      }
    
      // Avoid infinite recursion if a closeable's close() method throws RejectedExecutionException and
      // is closed using the direct executor.
      public void testCloseThrowsRejectedExecutionException() throws Exception {
        doThrow(new RejectedExecutionException()).when(mockCloseable).close();
        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ClosingFuture.java

    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionException;
    import java.util.concurrent.atomic.AtomicReference;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A step in a pipeline of an asynchronous computation. When the last step in the computation is
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
Back to top