Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sendErr (0.17 sec)

  1. src/reflect/value.go

    			ch.mustBeExported()
    			tt := (*chanType)(unsafe.Pointer(ch.typ()))
    			if ChanDir(tt.Dir)&SendDir == 0 {
    				panic("reflect.Select: SendDir case using recv-only channel")
    			}
    			rc.ch = ch.pointer()
    			rc.typ = toRType(&tt.Type)
    			v := c.Send
    			if !v.IsValid() {
    				panic("reflect.Select: SendDir case missing Send value")
    			}
    			v.mustBeExported()
    			v = v.assignTo("reflect.Select", tt.Elem, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	// check construction and use of type not in binary
    	type T string
    	crt := ChanOf(RecvDir, TypeOf(T("")))
    	cst := ChanOf(SendDir, TypeOf(T("")))
    
    	// check that type already in binary is found
    	type T1 int
    	checkSameType(t, ChanOf(RecvDir, TypeOf(T1(1))), (<-chan T1)(nil))
    	checkSameType(t, ChanOf(SendDir, TypeOf(T1(1))), (chan<- T1)(nil))
    
    	// check String form of ChanDir
    	if crt.ChanDir().String() != "<-chan" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    				// should probably start a goroutine to read from req. This best
    				// effort select existed before the change to check 'deleted'.
    				// But if we know for sure it wasn't deleted and a sender is
    				// outstanding, we should probably block on req (in a new
    				// goroutine) to get the connection back.
    				select {
    				default:
    				case ret, ok := <-req:
    					if ok && ret.conn != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    make(chan int, 100)
    </pre>
    
    <p>
    The capacity, in number of elements, sets the size of the buffer in the channel.
    If the capacity is zero or absent, the channel is unbuffered and communication
    succeeds only when both a sender and receiver are ready. Otherwise, the channel
    is buffered and communication succeeds without blocking if the buffer
    is not full (sends) or not empty (receives).
    A <code>nil</code> channel is never ready for communication.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top