Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 145 for listeners (0.07 sec)

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

      public void testSubmit() throws Exception {
        /*
         * Mostly just tests that TrustedListenableFutureTask are created and run; tests for
         * TrustedListenableFutureTask should ensure that listeners are called correctly.
         */
    
        TestListeningExecutorService e = new TestListeningExecutorService();
    
        TestRunnable runnable = new TestRunnable();
        ListenableFuture<?> runnableFuture = e.submit(runnable);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. cycle_suppress_list.txt

    FIELD com.google.common.collect.TreeTraverser.PreOrderIterator.stack
    FIELD com.google.common.util.concurrent.AbstractFuture.Listener.executor com.google.common.util.concurrent.MoreExecutors.rejectionPropagatingExecutor.$
    FIELD com.google.common.util.concurrent.AbstractService.listeners
    # NonReentrantExecutor is not exposed to this field
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 24 01:59:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        for (int k = 0; k < 50; k++) {
          // For each listener we add a task that submits it to the executor directly for the blocking
          // get use case and another task that adds it as a listener to the future to exercise both
          // racing addListener calls and addListener calls completing after the future completes.
          Runnable listener = k % 2 == 0 ? collectResultsRunnable : collectResultsTimedGetRunnable;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          RunnableExecutorPair list;
          synchronized (this) {
            if (executed) {
              return;
            }
            executed = true;
            list = runnables;
            runnables = null; // allow GC to free listeners even if this stays around for a while.
          }
          while (list != null) {
            executeListener(list.runnable, list.executor);
            list = list.next;
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

            AbstractFutureState<?> future, @Nullable Listener expect, Listener update) {
          return UNSAFE.compareAndSwapObject(future, LISTENERS_OFFSET, expect, update);
        }
    
        @Override
        @Nullable Listener gasListeners(AbstractFutureState<?> future, Listener update) {
          while (true) {
            Listener listener = future.listenersField;
            if (update == listener) {
              return listener;
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  6. docs/features/events.md

    ### Events with Retries and Follow-Ups
    
    OkHttp is resilient and can automatically recover from some connectivity failures. In this case, the `connectFailed()` event is not terminal and not followed by `callFailed()`. Event listeners will receive multiple events of the same type when retries are attempted.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

        }
    
        @Override
        boolean casListeners(
            AbstractFutureState<?> future, @Nullable Listener expect, Listener update) {
          return listenersUpdater.compareAndSet(future, expect, update);
        }
    
        @Override
        @Nullable Listener gasListeners(AbstractFutureState<?> future, Listener update) {
          return (Listener) listenersUpdater.getAndSet(future, update);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

    import java.util.ArrayList;
    import java.util.List;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Validate that {@link EventBus} behaves carefully when listeners publish their own events.
     *
     * @author Jesse Wilson
     */
    @NullUnmarked
    public class ReentrantEventsTest extends TestCase {
    
      static final String FIRST = "one";
      static final Double SECOND = 2.0d;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         */
        @Override
        public void addListener(Runnable listener, Executor exec) {
          executionList.add(listener, exec);
        }
    
        /**
         * Subclasses should invoke this method to set the result of the computation to {@code value}.
         * This will set the state of the future to {@link OldAbstractFuture.Sync#COMPLETED} and invoke
         * the listeners if the state was successfully changed.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           * lets all futures share the same listener.
           *
           * We store `localFuturesOrNull` inside the listener because `this.futures` might be nulled
           * out by the time the listener runs for the final future -- at which point we need to check
           * all inputs for exceptions *if* we're collecting values. If we're not, then the listener
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top