Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rch (0.02 sec)

  1. src/internal/types/testdata/check/stmt0.go

    	3.14 /* ERROR "cannot assign" */ ++
    	var (
    		x int
    		y float32
    		z complex128
    	)
    	x++
    	y--
    	z++
    }
    
    func sends() {
    	var ch chan int
    	var rch <-chan int
    	var x int
    	x <- /* ERROR "cannot send" */ x
    	rch <- /* ERROR "cannot send" */ x
    	ch <- "foo" /* ERRORx `cannot use .* in send` */
    	ch <- x
    }
    
    func selects() {
    	select {}
    	var (
    		ch chan int
    		sc chan <- bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    // and then proxies to w.
    // It proxies Read calls to a reader it receives from rch.
    type logWritesConn struct {
    	net.Conn // nil. crash on use.
    
    	w io.Writer
    
    	rch <-chan io.Reader
    	r   io.Reader // nil until received by rch
    
    	mu     sync.Mutex
    	writes []string
    }
    
    func (c *logWritesConn) Write(p []byte) (n int, err error) {
    	c.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top