Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for XTestCustomContextGoroutines (0.44 sec)

  1. src/context/context_test.go

    }
    
    type myCtx struct {
    	Context
    }
    
    type myDoneCtx struct {
    	Context
    }
    
    func (d *myDoneCtx) Done() <-chan struct{} {
    	c := make(chan struct{})
    	return c
    }
    func XTestCustomContextGoroutines(t testingT) {
    	g := goroutines.Load()
    	checkNoGoroutine := func() {
    		t.Helper()
    		now := goroutines.Load()
    		if now != g {
    			t.Fatalf("%d goroutines created", now-g)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 19:13:01 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top