Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 232 for Executor (0.13 sec)

  1. guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java

     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Preconditions;
    import java.util.concurrent.Executor;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link ListenableFuture} which forwards all its method calls to another future. Subclasses
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 04 12:23:41 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

    import okhttp3.internal.okHttpName
    import okhttp3.internal.threadFactory
    
    /**
     * Policy on when async requests are executed.
     *
     * Each dispatcher uses an [ExecutorService] to run calls internally. If you supply your own
     * executor, it should be able to run [the configured maximum][maxRequests] number of calls
     * concurrently.
     */
    class Dispatcher() {
      internal val lock: ReentrantLock = ReentrantLock()
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jun 20 14:10:53 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

        }
    
        protected static String buildFileConfigJobScript(final String fileConfigId) {
            return String.format("return container.getComponent(\"crawlJob\")" + ".logLevel(\"info\")" + ".sessionId(\"%s\")"
                    + ".fileConfigIds([\"%s\"] as String[])" + ".jobExecutor(executor).execute();", fileConfigId, fileConfigId);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      public static boolean awaitTerminationUninterruptibly(
          ExecutorService executor, Duration timeout) {
        return awaitTerminationUninterruptibly(executor, toNanosSaturated(timeout), NANOSECONDS);
      }
    
      /**
       * Invokes {@code executor.}{@link ExecutorService#awaitTermination(long, TimeUnit)
       * awaitTermination(long, TimeUnit)} uninterruptibly.
       *
       * @since 30.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

        @Inject
        private LegacySupport legacySupport;
    
        private final Executor executor;
    
        public DefaultArtifactResolver() {
            int threads = Integer.getInteger("maven.artifact.threads", 5);
            if (threads <= 1) {
                executor = Runnable::run;
            } else {
                executor = new ThreadPoolExecutor(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  6. src/main/resources/fess_indices/fess_config.scheduled_job/scheduled_job.bulk

    {"name":"Default Crawler","target":"all","cronExpression":"0 0 * * *","scriptType":"groovy","scriptData":"return container.getComponent(\"crawlJob\").logLevel(\"info\").gcLogging().execute(executor);","jobLogging":true,"crawler":true,"available":true,"sortOrder":1,"createdBy":"system","createdTime":0,"updatedBy":"system","updatedTime":0}
    {"index":{"_index":"fess_config.scheduled_job","_id":"suggest_indexer"}}
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Dec 02 13:14:56 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.testing.NullPointerTester;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Executors;
    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link ExecutionList}.
     *
     * @author Nishant Thakkar
     * @author Sven Mawson
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(5, 6, "C");
    
        int threadCount = 20;
        ExecutorService executor = newFixedThreadPool(threadCount);
        final CyclicBarrier barrier = new CyclicBarrier(threadCount);
        ImmutableList.Builder<Future<?>> futures = ImmutableList.builder();
        for (int i = 0; i < threadCount; i++) {
          futures.add(
              executor.submit(
                  new Callable<@Nullable Void>() {
                    @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

            return null;
        }
    
        public void authenticate(final Credentials credentials,
                final BiConsumer<HttpUriRequest, BiConsumer<HttpResponse, HttpEntity>> executor) {
            final String tokenUrl = getParameter(TOKEN_URL);
            final String tokenPattern = getParameter(TOKEN_PATTERN);
            final List<Pair<String, String>> responseParams = new ArrayList<>();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_remote_test_util.cc

      for (auto* h : handles_task2) {
        TFE_DeleteTensorHandle(h);
      }
    
      TFE_DeleteOp(matmul);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      if (func) {
        TFE_ContextRemoveFunction(ctx, "MatMulFunction", status);
      }
      TFE_DeleteContext(ctx);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
Back to top