Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,081 for executors (0.13 sec)

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

    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Used to test listenable future implementations.
     *
     * @author Sven Mawson
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt

    package org.gradle.internal.cc.impl
    
    import org.junit.Assert
    import org.junit.Assert.assertFalse
    import org.junit.Assert.assertTrue
    import org.junit.Test
    import java.lang.IllegalStateException
    import java.util.concurrent.Executors
    
    
    class InputTrackingStateTest {
    
        @Test
        fun `input tracking is enabled by default`() {
            val state = InputTrackingState()
    
            assertTrue(state.isEnabledForCurrentThread())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Used to test listenable future implementations.
     *
     * @author Sven Mawson
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest;
    
    import java.io.IOException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    
    import org.codelibs.fess.suggest.analysis.SuggestAnalyzer;
    import org.codelibs.fess.suggest.converter.ReadingConverter;
    import org.codelibs.fess.suggest.exception.SuggesterException;
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/LazyConsumerActionExecutor.java

                }
    
                @Override
                public Void run(final ConsumerConnection c) {
                    ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(1);
                    ExecutorService executorService = MoreExecutors.getExitingExecutorService(executor, 3, TimeUnit.SECONDS);
                    executorService.submit(new Runnable() {
                        @Override
                        public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        Future<?> first =
            blocked.submit(
                new Runnable() {
                  @Override
                  public void run() {
                    executor.execute(Runnables.doNothing());
                  }
                });
        future.get(10, TimeUnit.SECONDS);
        assertThrows(RejectedExecutionException.class, () -> executor.execute(Runnables.doNothing()));
        latch.countDown();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        Future<?> first =
            blocked.submit(
                new Runnable() {
                  @Override
                  public void run() {
                    executor.execute(Runnables.doNothing());
                  }
                });
        future.get(10, TimeUnit.SECONDS);
        assertThrows(RejectedExecutionException.class, () -> executor.execute(Runnables.doNothing()));
        latch.countDown();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

          .build()
    
      @After
      fun tearDown() {
        engine.shutdown()
        cacheDir.deleteRecursively()
      }
    
      @Test
      fun get() {
        val executor = Executors.newCachedThreadPool()
    
        val completableFuture = execute(engine, executor, "https://google.com/robots.txt")
    
        try {
          val response = completableFuture.get(10, TimeUnit.SECONDS)
    
          assertEquals(200, response.code)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.util.ArrayList;
    import java.util.Random;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /**
     * Basher test for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @J2ktIncompatible // threads
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

    import java.io.PrintStream;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    
    import org.apache.maven.jline.JLineMessageBuilderFactory;
    import org.eclipse.aether.DefaultRepositorySystemSession;
    import org.eclipse.aether.transfer.TransferCancelledException;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top