- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for checkCreatedGoroutine (0.12 sec)
-
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)