Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active February 9, 2019 13:39
Show Gist options
  • Select an option

  • Save cartant/756fb7504badc4ae88a253af2242eb69 to your computer and use it in GitHub Desktop.

Select an option

Save cartant/756fb7504badc4ae88a253af2242eb69 to your computer and use it in GitHub Desktop.
import { range } from "rxjs";
import { debug } from "./debug";
const source = range(1, 2).pipe(debug());
console.log("first use:");
source.subscribe();
console.log("second use:");
source.subscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment