Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for goexitCleanupSeq (0.26 sec)

  1. src/iter/pull_test.go

    		}
    		if x, ok := next(); x != 0 || ok {
    			t.Fatal("iterator returned valid value after iterator Goexited")
    		}
    		stop()
    	})
    	t.Run("stop", func(t *testing.T) {
    		next, stop := Pull(goexitCleanupSeq())
    		x, ok := next()
    		if !ok || x != 55 {
    			t.Fatalf("expected (55, true) from next, got (%d, %t)", x, ok)
    		}
    		if !goexits(t, func() {
    			stop()
    		}) {
    			t.Fatal("failed to Goexit from stop")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top