Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for submitAsync (0.06 seconds)

  1. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 01:35:55 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import static com.google.common.util.concurrent.Futures.scheduleAsync;
    import static com.google.common.util.concurrent.Futures.submit;
    import static com.google.common.util.concurrent.Futures.submitAsync;
    import static com.google.common.util.concurrent.Futures.successfulAsList;
    import static com.google.common.util.concurrent.Futures.transform;
    import static com.google.common.util.concurrent.Futures.transformAsync;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import static com.google.common.util.concurrent.Futures.scheduleAsync;
    import static com.google.common.util.concurrent.Futures.submit;
    import static com.google.common.util.concurrent.Futures.submitAsync;
    import static com.google.common.util.concurrent.Futures.successfulAsList;
    import static com.google.common.util.concurrent.Futures.transform;
    import static com.google.common.util.concurrent.Futures.transformAsync;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(immediateVoidFuture());
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor());
        assertThat(firstCallable.called).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(immediateVoidFuture());
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor());
        assertThat(firstCallable.called).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/Futures.java

       *
       * @throws RejectedExecutionException if the task cannot be scheduled for execution
       * @since 23.0
       */
      public static <O extends @Nullable Object> ListenableFuture<O> submitAsync(
          AsyncCallable<O> callable, Executor executor) {
        TrustedListenableFutureTask<O> task = TrustedListenableFutureTask.create(callable);
        executor.execute(task);
        return task;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        waitUntilClosed(closingFuture);
        assertClosed(closeable1, closeable2);
      }
    
      public void testSubmitAsync() throws Exception {
        ClosingFuture<TestCloseable> closingFuture =
            ClosingFuture.submitAsync(
                closer -> {
                  closer.eventuallyClose(closeable1, closingExecutor);
                  return ClosingFuture.submit(
                      new ClosingCallable<TestCloseable>() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        waitUntilClosed(closingFuture);
        assertClosed(closeable1, closeable2);
      }
    
      public void testSubmitAsync() throws Exception {
        ClosingFuture<TestCloseable> closingFuture =
            ClosingFuture.submitAsync(
                closer -> {
                  closer.eventuallyClose(closeable1, closingExecutor);
                  return ClosingFuture.submit(
                      new ClosingCallable<TestCloseable>() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *
       * @throws java.util.concurrent.RejectedExecutionException if the task cannot be scheduled for
       *     execution
       * @since 30.1
       */
      public static <V extends @Nullable Object> ClosingFuture<V> submitAsync(
          AsyncClosingCallable<V> callable, Executor executor) {
        checkNotNull(callable);
        CloseableList closeables = new CloseableList();
        TrustedListenableFutureTask<V> task =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
Back to Top