Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unblocking (0.17 sec)

  1. doc/go1.17_spec.html

    the function completes.
    (See also the section on <a href="#Handling_panics">handling panics</a>.)
    </p>
    
    <pre>
    lock(l)
    defer unlock(l)  // unlocking happens before surrounding function returns
    
    // prints 3 2 1 0 before surrounding function returns
    for i := 0; i &lt;= 3; i++ {
    	defer fmt.Print(i)
    }
    
    // f returns 42
    func f() (result int) {
    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. doc/go_spec.html

    the function completes.
    (See also the section on <a href="#Handling_panics">handling panics</a>.)
    </p>
    
    <pre>
    lock(l)
    defer unlock(l)  // unlocking happens before surrounding function returns
    
    // prints 3 2 1 0 before surrounding function returns
    for i := 0; i &lt;= 3; i++ {
    	defer fmt.Print(i)
    }
    
    // f returns 42
    func f() (result int) {
    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