we raise another goroutine. inside of the second goroutine we raise another goroutine again. What happens if we want to close the second goroutine without killing the third one?
there’s no hierarchy, goroutines are independent. You won’t “kill” goroutines when the goroutine that spawned them returns. You can’t “kill” goroutines in general, they need to return by themselves
Обсуждают сегодня