On Thursday, 26 January 2023 at 15:38:28 UTC Brian Candler wrote:
> As a goroutine may terminate if panic occurs

If that happens, it will crash the entire program (go isn't python :-)
https://go.dev/play/p/YD3lQ-xWe29

... although other goroutines may continue for a very short time 
afterwards.  I did see the above link generate the following output a 
couple of times:

Hello, 世界
panic: foo

goroutine 6 [running]:
main.main.func1()
        /tmp/sandbox319329598/prog.go:13 +0x65
created by main.main
        /tmp/sandbox319329598/prog.go:11 +0x76

Program exited.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a2580f73-9e57-459d-8b13-daf2f89dc182n%40googlegroups.com.

Reply via email to