Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for waitCondition (0.11 sec)

  1. src/net/http/main_test.go

    		// shutting down, so give it some time.
    		time.Sleep(1 * time.Millisecond)
    	}
    	t.Errorf("Test appears to have leaked %s:\n%s", bad, stacks)
    }
    
    // waitCondition waits for fn to return true,
    // checking immediately and then at exponentially increasing intervals.
    func waitCondition(t testing.TB, delay time.Duration, fn func(time.Duration) bool) {
    	t.Helper()
    	start := time.Now()
    	var since time.Duration
    	for !fn(since) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top