Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for listenErrs (0.05 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerRelay.kt

     */
    package okhttp3
    
    /**
     * A special [EventListener] for testing the mechanics of event listeners.
     *
     * Each instance processes a single event on [call], and then adds a successor [EventListenerRelay]
     * on the same [call] to process the next event.
     *
     * By forcing the list of listeners to change after every event, we can detect if buggy code caches
     * a stale [EventListener] in a field or local variable.
     */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            }
    
            latch.await(5, TimeUnit.SECONDS);
            executor.shutdown();
    
            // Verify all listeners were added
            assertEquals(numThreads, fesenClient.onConnectListenerList.size());
        }
    
        /**
         * Test: Thread-safe listener invocation during connection
         * Verifies that listeners can be added while connect() is executing
         */
        @Test
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        task.cancel(false);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertEquals(1, runLatch.getCount());
    
        // Wait for the listeners to be called, don't rely on the same-thread exec.
        listenerLatch.await(5, SECONDS);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
    
        // Make sure we didn't run anything.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        task.cancel(false);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertEquals(1, runLatch.getCount());
    
        // Wait for the listeners to be called, don't rely on the same-thread exec.
        listenerLatch.await(5, SECONDS);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
    
        // Make sure we didn't run anything.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

         * [Request.tag]. Use null to remove any existing tag assigned for [T].
         *
         * Use this API to attach timing, debugging, or other application data to a request so that
         * you may read it in interceptors, event listeners, or callbacks.
         */
        @JvmName("reifiedTag")
        inline fun <reified T : Any> tag(tag: T?): Builder = tag(T::class, tag)
    
        /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 13:46:58 UTC 2025
    - 14.7K bytes
    - Viewed (1)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Call.kt

       * Configure the client's default timeout with [OkHttpClient.Builder.callTimeout].
       */
      fun timeout(): Timeout
    
      /**
       * Configure this call to publish all future events to [eventListener], in addition to the
       * listeners configured by [OkHttpClient.Builder.eventListener] and other calls to this function.
       *
       * If this call is later [cloned][clone], [eventListener] will not be notified of its events.
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

     * This accepts events as function calls on [EventListener], and publishes them as subtypes of
     * [CallEvent].
     */
    class EventListenerAdapter : EventListener() {
      var listeners = listOf<(CallEvent) -> Unit>()
    
      private fun onEvent(listener: CallEvent) {
        for (function in listeners) {
          function(listener)
        }
      }
    
      override fun dispatcherQueueStart(
        call: Call,
        dispatcher: Dispatcher,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        CyclicBarrier barrier =
            new CyclicBarrier(
                6 // for the setter threads
                    + 50 // for the listeners
                    + 50 // for the blocking get threads,
                    + 1); // for the main thread
        ExecutorService executor = newFixedThreadPool(barrier.getParties());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

       * EventListeners added by Interceptors will not see all events.
       */
      private val enforceOrder: Boolean = true,
    ) {
      private val eventListenerAdapter =
        EventListenerAdapter()
          .apply {
            listeners += ::logEvent
          }
    
      val eventListener: EventListener
        get() = eventListenerAdapter
    
      /** Events that haven't yet been removed. */
      val eventSequence: Deque<CallEvent> = ConcurrentLinkedDeque()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        CyclicBarrier barrier =
            new CyclicBarrier(
                6 // for the setter threads
                    + 50 // for the listeners
                    + 50 // for the blocking get threads,
                    + 1); // for the main thread
        ExecutorService executor = newFixedThreadPool(barrier.getParties());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top