Channel (programming): Difference between revisions

Content deleted Content added
Added Category
Tags: Mobile edit Mobile web edit
Line 45:
c := make(chan int)
 
go func() {c <- +42}()
 
x := <- c