Home | History | Annotate | Download | only in chan

Lines Matching refs:ch

15 // Send the sequence 2, 3, 4, ... to channel 'ch'.
16 func Generate(ch chan<- int) {
18 ch <- i // Send 'i' to channel 'ch'.
34 ch := make(chan int) // Create a new channel.
35 go Generate(ch) // Start Generate() as a subprocess.
37 // Note that ch is different on each iteration.
38 prime := <-ch
41 go Filter(ch, ch1, prime)
42 ch = ch1