Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shutdownRes (0.11 sec)

  1. src/net/http/serve_test.go

    	var once sync.Once
    	statesRes := make(chan map[ConnState]int, 1)
    	shutdownRes := make(chan error, 1)
    	gotOnShutdown := make(chan struct{})
    	handler := HandlerFunc(func(w ResponseWriter, r *Request) {
    		first := false
    		once.Do(func() {
    			statesRes <- cst.ts.Config.ExportAllConnsByState()
    			go func() {
    				shutdownRes <- cst.ts.Config.Shutdown(context.Background())
    			}()
    			first = true
    		})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top