Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clientCanceled (0.06 sec)

  1. internal/grid/grid_test.go

    		st, err := remoteConn.NewStream(ctx, handler, []byte(testPayload))
    		errFatal(err)
    		clientCanceled := make(chan time.Duration, 1)
    		go func() {
    			started := time.Now()
    			for resp := range st.responses {
    				err = resp.Err
    			}
    			clientCanceled <- time.Since(started)
    		}()
    		serverEnd := <-serverCanceled
    		clientEnd := <-clientCanceled
    		t.Log("server cancel time:", serverEnd)
    		t.Log("client cancel time:", clientEnd)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top