Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 993 for executeop (0.14 sec)

  1. okhttp/src/test/java/okhttp3/InterceptorTest.kt

        val boom = RuntimeException("boom!")
        addInterceptor(network) { chain: Interceptor.Chain? -> throw boom }
        val executor = ExceptionCatchingExecutor()
        client =
          client.newBuilder()
            .dispatcher(Dispatcher(executor))
            .build()
        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
        val call = client.newCall(request)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. native-image-tests/README.md

    Native Image Tests
    ==================
    
    This executes OkHttp's test suite inside a Graalvm image.
    
    Build the Native Image
    ----------------------
    
    Compile the classes and metadata into a Graalvm native image.
    
    ```
    ./gradlew --info native-image-tests:nativeImage
    ```
    
    Execute
    -------
    
    The native image runs JUnit 5 tests in the project.
    
    ```
    ./native-image-tests/build/graal/ConsoleLauncher
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Oct 31 12:12:20 UTC 2020
    - 393 bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java

        private final String projectId;
    
        public ProjectBuildFailureException(String projectId, MojoFailureException cause) {
            super("Build for project: " + projectId + " failed during execution of mojo.", cause);
    
            this.projectId = projectId;
        }
    
        public MojoFailureException getMojoFailureException() {
            return (MojoFailureException) getCause();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

              public void onFailure(Throwable t) {}
            };
        addCallback(f, callback, directExecutor());
      }
    
      private class CountingSameThreadExecutor implements Executor {
        int runCount = 0;
    
        @Override
        public void execute(Runnable command) {
          command.run();
          runCount++;
        }
      }
    
      private final class MockCallback implements FutureCallback<String> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

              public String get(long time, TimeUnit unit) {
                return "foo"; // BAD!!
              }
    
              @Override
              public void addListener(Runnable runnable, Executor executor) {
                executor.execute(runnable);
              }
            };
        Future<?> future = newFutureInstance();
        future
            .getClass()
            .getMethod(
                "setFuture",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

              public String get(long time, TimeUnit unit) {
                return "foo"; // BAD!!
              }
    
              @Override
              public void addListener(Runnable runnable, Executor executor) {
                executor.execute(runnable);
              }
            };
        Future<?> future = newFutureInstance();
        future
            .getClass()
            .getMethod(
                "setFuture",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test.cc

        if (state.iterations() >= state.max_iterations && async) {
          TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
          TFE_ExecutorWaitForAllPendingNodes(executor, status);
          ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
          TFE_DeleteExecutor(executor);
        }
      }
      TFE_DeleteOp(matmul);
      TFE_DeleteTensorHandle(m);
      TFE_DeleteContext(ctx);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  8. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val executor = Executors.newScheduledThreadPool(1)
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractService.java

      }
    
      /** @since 13.0 */
      @Override
      public final void addListener(Listener listener, Executor executor) {
        listeners.addListener(listener, executor);
      }
    
      @Override
      public String toString() {
        return getClass().getSimpleName() + " [" + state() + "]";
      }
    
      /**
       * Attempts to execute all the listeners in {@link #listeners} while not holding the {@link
       * #monitor}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

    import java.util.concurrent.TimeUnit;
    import okhttp3.Call;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public class CancelCall {
      private final ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.1K bytes
    - Viewed (0)
Back to top