Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for cancelling (0.18 sec)

  1. cmd/metacache-server-pool.go

    	var mu sync.Mutex
    	var wg sync.WaitGroup
    	var errs []error
    	allAtEOF := true
    	var inputs []chan metaCacheEntry
    	mu.Lock()
    	// Ask all sets and merge entries.
    	listCtx, cancelList := context.WithCancel(ctx)
    	defer cancelList()
    	for _, pool := range z.serverPools {
    		for _, set := range pool.sets {
    			wg.Add(1)
    			innerResults := make(chan metaCacheEntry, 100)
    			inputs = append(inputs, innerResults)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:23 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/context/context.go

    // context's Done channel is closed when the returned cancel function is called
    // or when the parent context's Done channel is closed, whichever happens first.
    //
    // Canceling this context releases resources associated with it, so code should
    // call cancel as soon as the operations running in this [Context] complete.
    func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  5. src/context/x_test.go

    	}
    	if got := Cause(ccc); got != Canceled {
    		t.Errorf("after CancelCauseFunc Cause(ccc) = %v, want %v", got, Canceled)
    	}
    
    	// Test that if we associate a custom context with a child,
    	// then canceling the custom context cancels the child.
    	ccc = &customCauseContext{
    		done: make(chan struct{}),
    	}
    	ctx, cancelFunc := WithCancel(ccc)
    	ccc.setCancelChild(cancelFunc)
    	ccc.cancel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/log/slog/handler.go

    	// Handle handles the Record.
    	// It will only be called when Enabled returns true.
    	// The Context argument is as for Enabled.
    	// It is present solely to provide Handlers access to the context's values.
    	// Canceling the context should not affect record processing.
    	// (Among other things, log messages may be necessary to debug a
    	// cancellation-related problem.)
    	//
    	// Handle methods that produce output should observe the following rules:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 18:18:13 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  7. CHANGELOG.md

     *  Fix: Don't crash with a `InaccessibleObjectException` when detecting the platform trust manager
        on Java 17+.
     *  Fix: Don't crash if a cookie's value is a lone double quote character.
     *  Fix: Don't crash when canceling an event source created by `EventSources.processResponse()`.
     *  New: `Cache` now has a public constructor that takes an [okio.FileSystem]. This should make it
        possible to implement decorators for cache encryption or compression.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

      return tensorflow::unwrap(cancellation_manager)->IsCancelled();
    }
    
    bool TFE_CancellationManagerIsCancelling(
        TFE_CancellationManager* cancellation_manager) {
      return tensorflow::unwrap(cancellation_manager)->IsCancelling();
    }
    
    TFE_CancellationToken TFE_CancellationManagerGetToken(
        TFE_CancellationManager* cancellation_manager) {
      return tensorflow::unwrap(cancellation_manager)->get_cancellation_token();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom.go

    	}
    
    	if z.SinglePool() {
    		return errInvalidArgument
    	}
    
    	z.poolMetaMutex.Lock()
    	defer z.poolMetaMutex.Unlock()
    
    	fn := z.decommissionCancelers[idx]
    	if fn == nil {
    		// canceling a decommission before it started return an error.
    		return errDecommissionNotStarted
    	}
    
    	defer fn() // cancel any active thread.
    
    	if z.poolMeta.DecommissionCancel(idx) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 14:30:43 UTC 2024
    - 41.5K bytes
    - Viewed (1)
  10. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    	}
    
    	notAcceptingNewRequestCh := s.lifecycleSignals.NotAcceptingNewRequest
    	drainedCh := s.lifecycleSignals.InFlightRequestsDrained
    	// Canceling the parent context does not immediately cancel the HTTP server.
    	// We only inherit context values here and deal with cancellation ourselves.
    	stopHTTPServerCtx, stopHTTPServer := context.WithCancelCause(context.WithoutCancel(ctx))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
Back to top