S21 (ZVV)

The S21 is a regional railway service of the Zürich S-Bahn of the Zürcher Verkehrsverbund (ZVV). The service operates at peak hours between Regensdorf-Watt and Zürich Hauptbahnhof over the Wettingen–Effretikon railway, supplementing the regular S6 service, which continues west to Baden. The S21 designation was previously used for service from Zürich to Zug over the Thalwil–Arth-Goldau railway; this is now provided by the S24.

S21
Overview
TypeS-Bahn
SystemZürich S-Bahn
LocaleZürich, Switzerland
TerminiZürich Hauptbahnhof
Regensdorf-Watt
Stations5
Operation
Operator(s)Zürcher Verkehrsverbund (ZVV)
Technical
Track gauge1,435 mm (4 ft 8 12 in) standard gauge

Route

The service operates on weekdays during peak hours; there are a total of eight trains in each direction per day. Inbound trains in the morning and outbound trains in the evening bypass Zürich Affoltern. Trains stop at the following stations:[1]

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.

References

  1. "Regensdorf-Watt–Zürich Oerlikon–Zürich HB" (PDF). ZVV. 1 May 2019. p. 24. Retrieved 21 September 2019.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.