Sobes.tech
Senior

Co wyświetli program? Dlaczego? func main() { czasStart := time.Now() _, _ = <-worker(), <-worker() println(int(time.Since(czasStart).Seconds())) } func worker() chan int { ch := make(chan int) go func() { time.Sleep(3 * time.Second) ch <- 1 }() return ch }