Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestChanOfGC (0.17 sec)

  1. src/reflect/all_test.go

    		t.Errorf("chan dir: have %q, want %q", cst.ChanDir().String(), "chan<-")
    	}
    }
    
    func TestChanOfGC(t *testing.T) {
    	done := make(chan bool, 1)
    	go func() {
    		select {
    		case <-done:
    		case <-time.After(5 * time.Second):
    			panic("deadlock in TestChanOfGC")
    		}
    	}()
    
    	defer func() {
    		done <- true
    	}()
    
    	type T *uintptr
    	tt := TypeOf(T(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top