Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for deadlinedContext (0.15 sec)

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

    			context:          deadlinedContext,
    			callback:         defaultCallback,
    			immediate:        true,
    			attemptsExpected: 1,
    			errExpected:      context.DeadlineExceeded,
    		},
    		{
    			name:             "context at deadline no attempts expected",
    			context:          deadlinedContext,
    			callback:         defaultCallback,
    			attemptsExpected: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    }
    func cancelledContext() (context.Context, context.CancelFunc) {
    	ctx, cancel := context.WithCancel(context.Background())
    	cancel()
    	return ctx, cancel
    }
    func deadlinedContext() (context.Context, context.CancelFunc) {
    	ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond)
    	for ctx.Err() != context.DeadlineExceeded {
    		time.Sleep(501 * time.Microsecond)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top