You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
i have a doubt i have a go routine in my code if my program ends still the go routine will work right . the doubt is that when my program ends is it the main function or the soure code as a whole ends
the source code is converted to binary -- then we get a execution file then we do the code execution right as a whole , but when earlier case if program execute and exited the go routine should also exit right
Brian Candler
unread,
Aug 22, 2024, 11:24:34 AMAug 22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You have a process with threads where goroutines run. When that process dies, all goroutines die too. They cannot live beyond, or independently from, the main process.