F
Size: a a a
RL
package main
import (
"fmt"
"time"
)
func main() {
ch1 := make(chan int)
go func(in chan int) {
time.Sleep(5 * time.Second)
val := <-in
fmt.Println("GO: get from chan", val)
fmt.Println("GO: after read from chan")
}(ch1)
ch1 <- 42
fmt.Println("MAIN: after put to chan")
time.Sleep(5 * time.Second)
}
RA
ВФ
RL
VY
VY
RA
АП
АГ
АП
tests := []struct {} занимает 99%АП