Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 740 for Executes (0.06 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

          val results =
            (1..20).map {
              executor.submit {
                val response =
                  client.newCall(Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl())).execute()
    
                val body = response.body.string()
                assertThat(body).contains("Peter the person")
              }
            }
    
          results.forEach {
            it.get()
          }
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.7K bytes
    - Viewed (1)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

      }
    
      /** Simple same thread listening executor service that doesn't handle shutdown. */
      private static class TestListeningExecutorService extends AbstractListeningExecutorService {
    
        @Override
        public void execute(Runnable runnable) {
          assertThat(runnable).isInstanceOf(TrustedListenableFutureTask.class);
          runnable.run();
        }
    
        @Override
        public void shutdown() {}
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            for (int i = 0; i < numTasks; i++) {
                tasks.add(testCallable);
            }
    
            // Get start time
            final long time = System.nanoTime();
    
            // Execute callable tasks concurrently
            final ExecutorService executor = Executors.newFixedThreadPool(numTasks);
            try {
                final List<Future<Integer>> futures = executor.invokeAll(tasks);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

          Request
            .Builder()
            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(requestBody)
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
        /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/site/apt/index.apt.vm

    ${project.name}
    
     ${project.description}
    
    * Useful entry points
    
     * {{{./apidocs/org/apache/maven/cli/MavenCli.html}MavenCli.doMain(CliRequest)}} is the main method preparing runtime environment before running {{{../maven-core/}Maven.execute()}}
    
    * References
    
     * {{{./cli.html}CLI options}},
    
     * {{{./logging.html}logging API}}.
    
     * since 3.3.1 (see {{{/docs/3.3.1/release-notes.html#Core_Extensions}3.3.1 release notes}} for more details),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. dbflute_fess/dfprop/replaceSchemaMap.dfprop

        #
        #; isSuppressDropDBLink = false
        # - - - - - - - - - -/
    
        # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        # o initializeFirstSqlList: (NotRequired - Default list:{})
        #  You can execute the SQL statements before initializing schema.
        #
        #; initializeFirstSqlList = list:{}
        # - - - - - - - - - -/
    }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Oct 31 23:35:14 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  7. impl/maven-core/src/site/apt/plugin-execution-isolation.apt

    ~~ under the License.
    
     -----
     Maven plugins
     -----
     The Maven Team
     -----
    
    Maven plugin execution isolation
    
     Maven2 takes advantage of Plexus' ability to execute a component using a
     ClassWorlds ClassRealm that is populated with the JAR containing the
     component in question and all of its dependencies. Using ClassWorlds
     notation for realms we have the following:
    
    +-----+
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

            .url("https://api.github.com/markdown/raw")
            .post(pipeBody)
            .build();
    
        streamPrimesToSinkAsynchronously(pipeBody.sink());
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  9. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

            .Builder()
            .body("hello, Apache HttpClient 5.x")
            .build(),
        )
    
        val request = HttpGet(server.url("/").toUri())
        request.addHeader("Accept", "text/plain")
    
        httpClient.execute(request).use { response ->
          assertThat(response.code).isEqualTo(200)
          assertThat(EntityUtils.toString(response.entity)).isEqualTo("hello, Apache HttpClient 5.x")
        }
    
        val recorded = server.takeRequest()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        }, 1, TimeUnit.SECONDS);
    
        System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f);
        try (Response response = call.execute()) {
          System.out.printf("%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, response);
        } catch (IOException e) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.1K bytes
    - Viewed (0)
Back to top