Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeErrors (0.68 sec)

  1. src/net/http/serve_test.go

    func testTimeoutHandler(t *testing.T, mode testMode) {
    	sendHi := make(chan bool, 1)
    	writeErrors := make(chan error, 1)
    	sayHi := HandlerFunc(func(w ResponseWriter, r *Request) {
    		<-sendHi
    		_, werr := w.Write([]byte("hi"))
    		writeErrors <- werr
    	})
    	ctx, cancel := context.WithCancel(context.Background())
    	h := NewTestTimeoutHandler(sayHi, cancelableTimeoutContext{ctx})
    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