3 ms·
You can "link" goroutines in Go by using defer func(){ if recover() != nil { // tell my parent I died } }() and, Go relies on channels, not
by JulianMorrison 13y ago
You can "link" goroutines in Go by using
defer func(){
if recover() != nil {
// tell my parent I died
}
}()
and, Go relies on channels, not goroutines, having identity.