Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for close (0.14 sec)

  1. doc/go_mem.html

    the <code>print</code>.
    </p>
    
    <p class="rule">
    The closing of a channel is synchronized before a receive that returns a zero value
    because the channel is closed.
    </p>
    
    <p>
    In the previous example, replacing
    <code>c &lt;- 0</code> with <code>close(c)</code>
    yields a program with the same guaranteed behavior.
    </p>
    
    <p class="rule">
    A receive from an unbuffered channel is synchronized before the completion of
    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)
  2. doc/go1.17_spec.html

    they cannot be used as function values.
    </p>
    
    <h3 id="Close">Close</h3>
    
    <p>
    For a channel <code>c</code>, the built-in function <code>close(c)</code>
    records that no more values will be sent on the channel.
    It is an error if <code>c</code> is a receive-only channel.
    Sending to or closing a closed channel causes a <a href="#Run_time_panics">run-time panic</a>.
    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)
  3. doc/go_spec.html

    </p>
    
    
    <h3 id="Close">Close</h3>
    
    <p>
    For an argument <code>ch</code> with a <a href="#Core_types">core type</a>
    that is a <a href="#Channel_types">channel</a>, the built-in function <code>close</code>
    records that no more values will be sent on the channel.
    It is an error if <code>ch</code> is a receive-only channel.
    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)
Back to top