Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Created March 11, 2021 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/72dea21d7aa488bcf07f00eb0860b262 to your computer and use it in GitHub Desktop.
Save ssougnez/72dea21d7aa488bcf07f00eb0860b262 to your computer and use it in GitHub Desktop.
interval(1000)
.pipe(
takeUntil(this.destroy$),
map(() => this._http.put('http://localhost:3000/documents/1', { lastUpdate: new Date() }).subscribe())
)
.subscribe(x => console.log(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment