Created
July 24, 2020 16:39
-
-
Save ssukhpinder/abae0fb7aa7ec748eb58f0fcb0592fc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interval(1000) // run every 1 second | |
.pipe( | |
startWith(0), | |
switchMap(() => /* API or Function call */) | |
) | |
.subscribe( | |
res => {}, | |
error=>{} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment