package main
import (
"fmt"
)
func main() {
done := make(chan bool)
hellos := make(chan string)
go func() {
for i := 0; i < 10; i++ {
hellos <- "Hello World"
}
done <- true
}()
go func() {
for {
select {
case hello := <-hellos:
fmt.Println(hello)
}
}
}()
<-done
}
☠️
Highlights
- Pro
Popular repositories Loading
-
cordova-plugin-media-capture
cordova-plugin-media-capture PublicForked from apache/cordova-plugin-media-capture
Mirror of Apache Cordova Plugin media-capture
JavaScript
-
-
service.xbmc-oasth
service.xbmc-oasth PublicXBMC Plugin Bus Information for OASTH Thessaloniki
Python
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.