Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for canceling (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/concurrent/Task.kt

     *
     * Cancellation
     * ------------
     *
     * Tasks may be canceled while they are waiting to be executed, or while they are executing.
     *
     * Canceling a task that is waiting to execute prevents that upcoming execution. Canceling a task
     * that is currently executing does not impact the ongoing run, but it does prevent a recurrence
     * from being scheduled.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/context/afterfunc_test.go

    		t.Errorf("after WithCancel(ctx0): ctx0 has %v afterFuncs, want %v", got, want)
    	}
    	cancel1()
    	cancel2()
    	if got, want := len(ctx0.afterFuncs), 0; got != want {
    		t.Errorf("after canceling WithCancel(ctx0): ctx0 has %v afterFuncs, want %v", got, want)
    	}
    }
    
    func TestCustomContextAfterFuncUnregisterTimeout(t *testing.T) {
    	ctx0 := &afterFuncContext{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:58:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/WatchForDisconnection.java

            execution.getConnection().onDisconnect(new Runnable() {
                @Override
                public void run() {
                    LOGGER.warn("thread {}: client disconnection detected, canceling the build", Thread.currentThread().getId());
                    execution.getDaemonStateControl().requestCancel();
                }
            });
    
            try {
                execution.proceed();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     * will prefer pooled connections. Only pooled HTTP/2 connections are used for such de-duplication.
     *
     * It is possible to cancel the finding process by canceling its call.
     *
     * Implementations of this interface are not thread-safe. Each instance is thread-confined to the
     * thread executing the call.
     */
    interface RoutePlanner {
      val address: Address
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

            .build()
    
        val startNanos = System.nanoTime()
        val call = client.newCall(request)
    
        // Schedule a job to cancel the call in 1 second.
        executor.schedule({
          System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f)
          call.cancel()
          System.out.printf("%.2f Canceled call.%n", (System.nanoTime() - startNanos) / 1e9f)
        }, 1, TimeUnit.SECONDS)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

     *
     * This class supports [asynchronous canceling][cancel]. This is intended to have the smallest
     * blast radius possible. If an HTTP/2 stream is active, canceling will cancel that stream but not
     * the other streams sharing its connection. But if the TLS handshake is still in progress then
     * canceling may break the entire connection.
     */
    class RealCall(
      val client: OkHttpClient,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. src/context/context_test.go

    	checkChildren("with WithCancel child ", ctx, 1)
    	cancel()
    	checkChildren("after canceling WithCancel child", ctx, 0)
    
    	ctx, _ = WithCancel(Background())
    	checkChildren("after creation", ctx, 0)
    	_, cancel = WithTimeout(ctx, 60*time.Minute)
    	checkChildren("with WithTimeout child ", ctx, 1)
    	cancel()
    	checkChildren("after canceling WithTimeout child", ctx, 0)
    
    	ctx, _ = WithCancel(Background())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 19:13:01 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. internal/grid/stream.go

    type Stream struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    }
    
    // LoadEncryptionConfig parses and validates the encryption config specified by filepath.
    // It may launch multiple go routines whose lifecycle is controlled by ctx.
    // In case of an error, the caller is responsible for canceling ctx to clean up any go routines that may have been launched.
    // If reload is true, or KMS v2 plugins are used with no KMS v1 plugins, the returned slice of health checkers will always be of length 1.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

              },
              executor);
        }
      }
    
      /**
       * Returns a {@code ListenableFuture} whose result is set from the supplied future when it
       * completes. Cancelling the supplied future will also cancel the returned future, but cancelling
       * the returned future will have no effect on the supplied future.
       *
       * @since 15.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top