- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for doDoubleNext (0.09 sec)
-
src/iter/pull_test.go
panic("failed to stabilize NumGoroutine after 1000 iterations") } func TestPullDoubleNext(t *testing.T) { next, _ := Pull(doDoubleNext()) nextSlot = next next() if nextSlot != nil { t.Fatal("double next did not fail") } } var nextSlot func() (int, bool) func doDoubleNext() Seq[int] { return func(_ func(int) bool) { defer func() { if recover() != nil { nextSlot = nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0)