Antidote Records

Antidote Records is an independent British record label.

Currently signed artists

gollark: And it mutates some shared state.
gollark: As you can see, it has to explicitly manage a "waitgroup" for synchronization and whatnot.
gollark: ```go log.Println("Fetching feeds...") var feeds []*rss.Feed var wg sync.WaitGroup for _, source := range sources { wg.Add(1) src := source go func() { defer wg.Done() feed, err := rss.Fetch(src.String()) if err != nil { log.Printf("Error fetching %s: %s", src.String(), err.Error()) return } feeds = append(feeds, feed) log.Printf("Fetched %s", feed.Title) }() } wg.Wait()```So here is something which is meant to fetch a bunch of RSS feeds in parallel.
gollark: Somewhat? There doesn't seem to be a better way to do it.
gollark: Hold on, I worked on a tiny bit of Go code, I'll dredge some up as a sample.

See also


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.