Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 268 for callbacks (0.07 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        data.write("8a00".decodeHex()) // Pong
        data.write("80026c6f".decodeHex()) // lo
        clientReader.processNextFrame()
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientTwoFrameCompressedHelloWithPongs() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

        dispatcher.maxRequests = 2
        client.newCall(newRequest("http://a/1")).enqueue(callback)
        client.newCall(newRequest("http://b/1")).enqueue(callback)
        client.newCall(newRequest("http://c/1")).enqueue(callback)
        client.newCall(newRequest("http://a/2")).enqueue(callback)
        client.newCall(newRequest("http://b/2")).enqueue(callback)
    
        val dispatcherQueueStartC1 = eventRecorder.removeUpToEvent<DispatcherQueueStart>()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        boolean ran = false;
        @Nullable Callback callback = null;
    
        SimpleTearDown() {}
    
        SimpleTearDown(Callback callback) {
          this.callback = callback;
        }
    
        @Override
        public void tearDown() throws Exception {
          if (callback != null) {
            callback.run();
          }
          ran = true;
        }
      }
    
      private interface Callback {
        void run();
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 01 13:14:50 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java

            loadIncludes(path, sp, callback);
            substitute(sp, callback);
            sp.forEach(properties::setProperty);
        }
    
        public static void substitute(MavenProperties props, UnaryOperator<String> callback) {
            for (Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); ) {
                String name = (String) e.nextElement();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java

            interpolate(properties, callback, null, true);
        }
    
        /**
         * Interpolates the values in the given map using the provided callback function.
         *
         * @param map The map containing key-value pairs to be interpolated.
         * @param callback The function to resolve variable values not found in the map.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jan 13 16:14:35 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  6. lib/wasm/wasm_exec.js

    			fchown(fd, uid, gid, callback) { callback(enosys()); },
    			fstat(fd, callback) { callback(enosys()); },
    			fsync(fd, callback) { callback(null); },
    			ftruncate(fd, length, callback) { callback(enosys()); },
    			lchown(path, uid, gid, callback) { callback(enosys()); },
    			link(path, link, callback) { callback(enosys()); },
    			lstat(path, callback) { callback(enosys()); },
    			mkdir(path, perm, callback) { callback(enosys()); },
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Sun Dec 08 15:34:47 GMT 2024
    - 16.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        MockCallback callback = new MockCallback("foo");
        addCallback(f, callback, directExecutor());
        f.set("foo");
      }
    
      public void testExecutorSuccess() {
        CountingSameThreadExecutor ex = new CountingSameThreadExecutor();
        SettableFuture<String> f = SettableFuture.create();
        MockCallback callback = new MockCallback("foo");
        Futures.addCallback(f, callback, ex);
        f.set("foo");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *     exception itself.
       * @param executor the executor that runs {@code fallback} if the input fails
       */
      public <X extends Throwable> ClosingFuture<V> catching(
          Class<X> exceptionType, ClosingFunction<? super X, ? extends V> fallback, Executor executor) {
        return catchingMoreGeneric(exceptionType, fallback, executor);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 13:51:27 GMT 2025
    - 96.9K bytes
    - Click Count (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

      private val source: BufferedSource,
      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt

    @Implements(DnsResolver::class)
    class ShadowDnsResolver {
      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
      }
    
      data class Request(
        val network: Network?,
        val domain: String,
        val nsType: Int,
        val flags: Int,
        val callback: DnsResolver.Callback<List<InetAddress>>,
      )
    
      @Implementation
      fun query(
        network: Network?,
        domain: String,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 1.7K bytes
    - Click Count (0)
Back to Top