Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runConditionWithCrashProtectionWithContext (0.39 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    	defer runtime.HandleCrash()
    	return condition()
    }
    
    // runConditionWithCrashProtectionWithContext runs a ConditionWithContextFunc
    // with crash protection.
    //
    // Deprecated: Will be removed when the legacy polling methods are removed.
    func runConditionWithCrashProtectionWithContext(ctx context.Context, condition ConditionWithContextFunc) (bool, error) {
    	defer runtime.HandleCrash()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go

    func poll(ctx context.Context, immediate bool, wait waitWithContextFunc, condition ConditionWithContextFunc) error {
    	if immediate {
    		done, err := runConditionWithCrashProtectionWithContext(ctx, condition)
    		if err != nil {
    			return err
    		}
    		if done {
    			return nil
    		}
    	}
    
    	select {
    	case <-ctx.Done():
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 06:13:35 UTC 2023
    - 14K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go

    	for backoff.Steps > 0 {
    		select {
    		case <-ctx.Done():
    			return ctx.Err()
    		default:
    		}
    
    		if ok, err := runConditionWithCrashProtectionWithContext(ctx, condition); err != nil || ok {
    			return err
    		}
    
    		if backoff.Steps == 1 {
    			break
    		}
    
    		waitBeforeRetry := backoff.Step()
    		select {
    		case <-ctx.Done():
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top