June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package channels import "time" // Sender sends "tick"" on ch until done is // written to, then it sends "sender done." // and exits func Sender(ch chan string, done chan bool) { t := time.Tick(100 * time.Millisecond) for { select { case <-done: ch <- "sender done." return case <-t: ch <- "tick" } } }
package ...
Read now
Unlock full access