Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for submit (0.18 sec)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

      @GwtIncompatible
      public static Executor newSequentialExecutor(Executor delegate) {
        return new SequentialExecutor(delegate);
      }
    
      /**
       * Creates an {@link ExecutorService} whose {@code submit} and {@code invokeAll} methods submit
       * {@link ListenableFutureTask} instances to the given delegate executor. Those methods, as well
       * as {@code execute} and {@code invokeAny}, are implemented in terms of calls to {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

     * Tasks execute with the same happens-before order that the function calls to {@link #submit} and
     * {@link #submitAsync} that submitted those tasks had.
     *
     * <p>This class has limited support for cancellation and other "early completions":
     *
     * <ul>
     *   <li>While calls to {@code submit} and {@code submitAsync} return a {@code Future} that can be
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        List<Future<?>> futures = Lists.newArrayList();
        ExecutorService executor = Executors.newFixedThreadPool(10);
        int numberOfCatchers = 10000;
        for (int i = 0; i < numberOfCatchers; i++) {
          futures.add(executor.submit(new Registrator(bus, catchers)));
        }
        for (int i = 0; i < numberOfCatchers; i++) {
          futures.get(i).get();
        }
        assertEquals("Unexpected number of catchers in the list", numberOfCatchers, catchers.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        List<Future<?>> futures = Lists.newArrayList();
        ExecutorService executor = Executors.newFixedThreadPool(10);
        int numberOfCatchers = 10000;
        for (int i = 0; i < numberOfCatchers; i++) {
          futures.add(executor.submit(new Registrator(bus, catchers)));
        }
        for (int i = 0; i < numberOfCatchers; i++) {
          futures.get(i).get();
        }
        assertEquals("Unexpected number of catchers in the list", numberOfCatchers, catchers.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        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
                    public @Nullable Void call() throws Exception {
                      barrier.await();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          currentFuture.set(future);
          for (Callable<?> task : allTasks) {
            @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
            Future<?> possiblyIgnoredError = executor.submit(task);
          }
          awaitUnchecked(barrier);
          assertThat(future.isDone()).isTrue();
          // inspect state and ensure it is correct!
          // asserts that all get calling threads received the same value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                },
                directExecutor());
        for (int i = 0; i < 25_000; i++) {
          serializer.submit(Callables.<Void>returning(null), directExecutor()).cancel(true);
          unused = serializer.submit(Callables.<Void>returning(null), directExecutor());
        }
        ListenableFuture<Integer> stackDepthCheck =
            serializer.submit(
                new Callable<Integer>() {
                  @Override
                  public Integer call() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                },
                directExecutor());
        for (int i = 0; i < 25_000; i++) {
          serializer.submit(Callables.<Void>returning(null), directExecutor()).cancel(true);
          unused = serializer.submit(Callables.<Void>returning(null), directExecutor());
        }
        ListenableFuture<Integer> stackDepthCheck =
            serializer.submit(
                new Callable<Integer>() {
                  @Override
                  public Integer call() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

          final Path file, final Path target, ExecutorService executor) {
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
        Future<?> possiblyIgnoredError =
            executor.submit(
                new Runnable() {
                  @Override
                  public void run() {
                    boolean createSymlink = false;
                    while (!Thread.interrupted()) {
                      try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          currentFuture.set(future);
          for (Callable<?> task : allTasks) {
            @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
            Future<?> possiblyIgnoredError = executor.submit(task);
          }
          awaitUnchecked(barrier);
          assertThat(future.isDone()).isTrue();
          // inspect state and ensure it is correct!
          // asserts that all get calling threads received the same value
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
Back to top