Channel (programming): Difference between revisions

Content deleted Content added
Line 45:
c := make(chan int)
 
go func() {c <- +42}()
 
x := <- c