Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 2,328 for executors (0.18 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutorFactory.groovy

    class TestExecutorFactory implements ExecutorFactory {
        private final TestExecutor executor
    
        TestExecutorFactory(TestExecutor executor) {
            this.executor = executor
        }
    
        @Override
        ManagedExecutor create(String displayName) {
            return new TestManagedExecutor(executor)
        }
    
        @Override
        ManagedExecutor create(String displayName, int fixedSize) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *     exception itself.
       * @param executor the executor that runs {@code fallback} if the input fails
       */
      public <X extends Throwable> ClosingFuture<V> catching(
          Class<X> exceptionType, ClosingFunction<? super X, ? extends V> fallback, Executor executor) {
        return catchingMoreGeneric(exceptionType, fallback, executor);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 98.7K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecActionFactory.java

            @Nullable
            private ExternalProcessStartedListener externalProcessStartedListener;
    
            BuilderImpl(
                Executor executor,
                TemporaryFileProvider temporaryFileProvider
            ) {
                this.executor = executor;
                this.temporaryFileProvider = temporaryFileProvider;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 10 06:16:11 UTC 2023
    - 24K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java

          Function<? super Throwable, ? extends V> fallback,
          Executor executor) {
        return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor);
      }
    
      public final FluentFuture<V> catchingAsync(
          Class<Throwable> exceptionType,
          AsyncFunction<? super Throwable, ? extends V> fallback,
          Executor executor) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 08 20:30:27 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/ImmediateFuture.java

      public void addListener(Runnable listener, Executor executor) {
        checkNotNull(listener, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
        try {
          executor.execute(listener);
        } catch (Exception e) { // sneaky checked exception
          // ListenableFuture's contract is that it will not throw unchecked exceptions, so log the bad
          // runnable and/or executor and swallow it.
          log.get()
              .log(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

    import java.util.List;
    import java.util.concurrent.Executor;
    import junit.framework.TestCase;
    
    /**
     * Test case for {@link AsyncEventBus}.
     *
     * @author Cliff Biffle
     */
    public class AsyncEventBusTest extends TestCase {
      private static final String EVENT = "Hello";
    
      /** The executor we use to fake asynchronicity. */
      private FakeExecutor executor;
    
      private AsyncEventBus bus;
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/AsyncDispatch.java

        private final Executor executor;
        private final int maxQueueSize;
        private final Map<Dispatch<?>, InterruptibleRunnable> dispatchers = new HashMap<Dispatch<?>, InterruptibleRunnable>();
        private State state;
    
        public AsyncDispatch(Executor executor) {
            this(executor, null, MAX_QUEUE_SIZE);
        }
    
        public AsyncDispatch(Executor executor, final Dispatch<? super T> dispatch, int maxQueueSize) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/Sample.java

     * limitations under the License.
     */
    
    package org.gradle.integtests.fixtures;
    
    import com.google.common.annotations.VisibleForTesting;
    import org.gradle.integtests.fixtures.executer.IntegrationTestBuildContext;
    import org.gradle.test.fixtures.dsl.GradleDsl;
    import org.gradle.test.fixtures.file.TestDirectoryProvider;
    import org.gradle.test.fixtures.file.TestFile;
    import org.junit.rules.TestRule;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java

          Executor executor) {
        return AbstractCatchingFuture.create(input, exceptionType, fallback, executor);
      }
    
      public static <V extends @Nullable Object> ListenableFuture<V> catchingAsync(
          ListenableFuture<? extends V> input,
          Class<Throwable> exceptionType,
          AsyncFunction<? super Throwable, ? extends V> fallback,
          Executor executor) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 08 20:30:27 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        dispatcher.maxRequestsPerHost = 4
        executor.assertJobs("http://a/1", "http://a/2", "http://a/3", "http://a/4")
      }
    
      @Test
      fun oldJobFinishesNewJobCanRunDifferentHost() {
        dispatcher.maxRequests = 1
        client.newCall(newRequest("http://a/1")).enqueue(callback)
        client.newCall(newRequest("http://b/1")).enqueue(callback)
        executor.finishJob("http://a/1")
        executor.assertJobs("http://b/1")
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top