mirror of
https://github.com/golang/go
synced 2024-11-23 07:30:05 -07:00
runtime: make it clear that Goexit cannot be recover'd.
LGTM=r R=r, bradfitz, khr CC=golang-codereviews https://golang.org/cl/136660044
This commit is contained in:
parent
c1e332020d
commit
15274e5c9b
@ -238,7 +238,8 @@ func deferreturn(arg0 uintptr) {
|
||||
}
|
||||
|
||||
// Goexit terminates the goroutine that calls it. No other goroutine is affected.
|
||||
// Goexit runs all deferred calls before terminating the goroutine.
|
||||
// Goexit runs all deferred calls before terminating the goroutine. Because Goexit
|
||||
// is not panic, however, any recover calls in those deferred functions will return nil.
|
||||
//
|
||||
// Calling Goexit from the main goroutine terminates that goroutine
|
||||
// without func main returning. Since func main has not returned,
|
||||
|
Loading…
Reference in New Issue
Block a user