Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for dispatchTo (0.16 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

       * byte of a frame but no more frames.
       */
      @Test
      fun readTimeoutAppliesWithinFrames() {
        webServer.dispatcher =
          object : Dispatcher() {
            override fun dispatch(request: RecordedRequest): MockResponse {
              return upgradeResponse(request)
                .body(Buffer().write("81".decodeHex())) // Truncated frame.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val connection = server.url("/").toUrl().openConnection() as HttpURLConnection
        connection.readTimeout = 500
        try {
          connection.responseCode
          fail<Unit>()
        } catch (expected: SocketTimeoutException) {
          // Expected.
        }
    
        // Shutting down the server should unblock the dispatcher.
        server.shutdown()
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildLauncherTest.groovy

                start {
                    thread.blockUntil.dispatched
                    instant.resultAvailable
                    wrappedHandler.onComplete(null)
                }
            }
            handler.onComplete(_) >> {
                instant.resultReceived
            }
    
            when:
            async {
                launcher.run(handler)
                instant.dispatched
                thread.blockUntil.resultReceived
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        val a = client.newBuilder().build()
        assertThat(a.dispatcher).isNotNull()
        assertThat(a.connectionPool).isNotNull()
        assertThat(a.sslSocketFactory).isNotNull()
        assertThat(a.x509TrustManager).isNotNull()
    
        // Multiple clients share the instances.
        val b = client.newBuilder().build()
        assertThat(b.dispatcher).isSameAs(a.dispatcher)
        assertThat(b.connectionPool).isSameAs(a.connectionPool)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

        /**
         * The file paths of all dependencies, regardless on which Java tool option those paths should be placed.
         */
        private final List<Path> paths;
    
        /**
         * The file paths of all dependencies, dispatched according the Java options where to place them.
         */
        private final Map<PathType, List<Path>> dispatchedPaths;
    
        /**
         * The dependencies together with the path to each dependency.
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            when:
            def acceptor = incomingConnector.accept({ ConnectCompletion event ->
                def conn = event.create(serializer)
                conn.dispatch("bye")
                conn.stop()
                instant.closed
            } as Action, false)
    
            def connection = outgoingConnector.connect(acceptor.address).create(serializer)
            thread.blockUntil.closed
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val headers: Headers? = part.headers()
        val body: RequestBody = part.body()
      }
    
      @Test @Disabled
      fun okHttpClient() {
        val client = OkHttpClient()
        val dispatcher: Dispatcher = client.dispatcher()
        val proxy: Proxy? = client.proxy()
        val protocols: List<Protocol> = client.protocols()
        val connectionSpecs: List<ConnectionSpec> = client.connectionSpecs()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/AbstractTestTask.java

    import org.gradle.internal.Cast;
    import org.gradle.internal.concurrent.CompositeStoppable;
    import org.gradle.internal.deprecation.DeprecationLogger;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    import org.gradle.internal.event.ListenerBroadcast;
    import org.gradle.internal.event.ListenerManager;
    import org.gradle.internal.logging.ConsoleRenderer;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java

                        break;
                    }
                }
                // A failure has happened. Drain the queue and complete without waiting. There should no more messages added to the queue
                // as the dispatch method will see the failure
                events.clear();
            }
    
            protected abstract void handle(T message);
    
            public abstract List<Object> getListeners();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:34:01 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCall.kt

     * ```
     * fun test(m: MutableList<String>) {
     *   m += "a" // A simple `KaFunctionCall` to `MutableList.plusAssign`, not a `KaVariableAccessCall`. However, the dispatch receiver of this
     *            // call, `m`, is a simple read access represented as a `KaVariableAccessCall`
     * }
     * ```
     */
    public class KaCompoundVariableAccessCall(
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top