Sign in
go
/
website
/
a1c9012b542bb9285233aa48a6c8b73a24c3b6a9
/
.
/
_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
}