Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var rssLinks = ["http://host1/rss.xml", "http://host2/rss.xml", "http://host3/rss.xml"];
- // My Task
- var task = Rx.Observable.from(rssLinks)
- .flatMap(functions.fetchFeeds);
- task.subscribe(function(feed) {
- console.log("nFeed " + feed.title + ", " + feed.link);
- });
- var disposable = Rx.Scheduler.timeout.schedulePeriodic(
- 60000, /* 1 minute */
- function () {
- // Execute My Task...
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement