Skip to content

Instantly share code, notes, and snippets.

@subkitio
Last active December 26, 2015 19:35
Show Gist options
  • Save subkitio/f9beabf34b8493758a1c to your computer and use it in GitHub Desktop.
Save subkitio/f9beabf34b8493758a1c to your computer and use it in GitHub Desktop.
Reactive Extentions - Observables
const rx = require('rx');
let subscription = rx.Observable
.interval(60000)
.doAction(counter => {
console.log(counter + ' Hello from a RxJs 1min interval job!');
})
.subscribe();
this.onCleanup = () => subscription.dispose();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment