func Listen(timeline *twistream.Timeline) { ch := timeline.Listen() for { select { case tw := <-ch: err := matchesAndHandles(tw, timeline) if err != nil { h := handlers.OnErrorHandler{} h.HandleError(err, tw, timeline) } } } }