Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkCreatedGoroutine (0.12 sec)

  1. src/context/context_test.go

    		if now != g {
    			t.Fatalf("%d goroutines created", now-g)
    		}
    	}
    	checkCreatedGoroutine := func() {
    		t.Helper()
    		now := goroutines.Load()
    		if now != g+1 {
    			t.Fatalf("%d goroutines created, want 1", now-g)
    		}
    		g = now
    	}
    
    	_, cancel0 := WithCancel(&myDoneCtx{Background()})
    	cancel0()
    	checkCreatedGoroutine()
    
    	_, cancel0 = WithTimeout(&myDoneCtx{Background()}, veryLongDuration)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 19:13:01 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top