Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Nevett (0.66 sec)

  1. doc/go_mem.html

    <p>
    The exit of a goroutine is not guaranteed to be synchronized before
    any event in the program.
    For example, in this program:
    </p>
    
    <pre>
    var a string
    
    func hello() {
    	go func() { a = "hello" }()
    	print(a)
    }
    </pre>
    
    <p>
    the assignment to <code>a</code> is not followed by
    any synchronization event, so it is not guaranteed to be
    observed by any other goroutine.
    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