Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for shend (0.21 sec)

  1. doc/go1.17_spec.html

    begins. Communication blocks until the send can proceed.
    A send on an unbuffered channel can proceed if a receiver is ready.
    A send on a buffered channel can proceed if there is room in the buffer.
    A send on a closed channel proceeds by causing a <a href="#Run_time_panics">run-time panic</a>.
    A send on a <code>nil</code> channel blocks forever.
    </p>
    
    <pre>
    ch &lt;- 3  // send value 3 to channel ch
    </pre>
    
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/bytes/buffer.go

    	}
    	c := cap(b.buf)
    	if n <= c/2-m {
    		// We can slide things down instead of allocating a new
    		// slice. We only need m+n <= c to slide, but
    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    	} else {
    		// Add b.off to account for b.buf[:b.off] being sliced off the front.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  3. doc/go_spec.html

    begins. Communication blocks until the send can proceed.
    A send on an unbuffered channel can proceed if a receiver is ready.
    A send on a buffered channel can proceed if there is room in the buffer.
    A send on a closed channel proceeds by causing a <a href="#Run_time_panics">run-time panic</a>.
    A send on a <code>nil</code> channel blocks forever.
    </p>
    
    <pre>
    ch &lt;- 3  // send value 3 to channel ch
    </pre>
    
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  4. src/builtin/builtin.go

    // implied by the type argument.
    func clear[T ~[]Type | ~map[Type]Type1](t T)
    
    // The close built-in function closes a channel, which must be either
    // bidirectional or send-only. It should be executed only by the sender,
    // never the receiver, and has the effect of shutting down the channel after
    // the last sent value is received. After the last value has been received
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. doc/go_mem.html

    <h3 id="chan">Channel communication</h3>
    
    <p>
    Channel communication is the main method of synchronization
    between goroutines.  Each send on a particular channel
    is matched to a corresponding receive from that channel,
    usually in a different goroutine.
    </p>
    
    <p class="rule">
    A send on a channel is synchronized before the completion of the
    corresponding receive from that channel.
    </p>
    
    <p>
    This program:
    </p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top