- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSleepZeroDeadlock (0.14 sec)
-
src/time/sleep_test.go
go func(i int) { timer := AfterFunc(2*Second, func() { t.Errorf("timer %d was not stopped", i) }) Sleep(1 * Second) timer.Stop() }(i) } Sleep(3 * Second) } func TestSleepZeroDeadlock(t *testing.T) { // Sleep(0) used to hang, the sequence of events was as follows. // Sleep(0) sets G's status to Gwaiting, but then immediately returns leaving the status.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0)