Sign in
go
/
website
/
7a60f303d8c4f3c0c7daab7b2175a6ff4f692698
/
.
/
_content
/
talks
/
2016
/
applicative
/
google
/
parallel.go
blob: 67434ce5d089a5a0d7a33025b34ef7a5890d9c3b [
file
] [
log
] [
blame
]
package google
func SearchParallel(query string) ([]Result, error) {
c := make(chan Result)
go func() { c <- Web(query) }()
go func() { c <- Image(query) }()
go func() { c <- Video(query) }()
return []Result{<-c, <-c, <-c}, nil
}