Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for deadlinedContext (0.1 sec)

  1. 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