Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var rssLinks = ["http://host1/rss.xml", "http://host2/rss.xml", "http://host3/rss.xml"];
  2.  
  3. // My Task
  4. var task = Rx.Observable.from(rssLinks)
  5. .flatMap(functions.fetchFeeds);
  6.  
  7. task.subscribe(function(feed) {
  8. console.log("nFeed " + feed.title + ", " + feed.link);
  9. });
  10.  
  11. var disposable = Rx.Scheduler.timeout.schedulePeriodic(
  12. 60000, /* 1 minute */
  13. function () {
  14. // Execute My Task...
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement