Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for cancelling (0.52 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. docs/recipes.md

    
    ### Canceling a Call ([.kt][CancelCallKotlin], [.java][CancelCallJava])
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  6. internal/dsync/dsync_test.go

    	select {
    	case <-ctx.Done():
    		t.Fatal("Lock context canceled which is not expected")
    	case <-timer.C:
    	}
    
    	// Should be safe operation in all cases
    	dm.Unlock(context.Background())
    }
    
    // Test canceling context while quorum servers report lock not found
    func TestFailedRefreshLock(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  7. 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)
  8. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    	// ReleaseOnCancel should be set true if the lock should be released
    	// when the run context is canceled. If you set this to true, you must
    	// ensure all code guarded by this lease has successfully completed
    	// prior to canceling the context, or you may have two processes
    	// simultaneously acting on the critical path.
    	ReleaseOnCancel bool
    
    	// Name is the name of the resource lock for debugging
    	Name string
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top