Last active
June 9, 2018 23:59
-
-
Save ssougnez/34244bf162108c1e388954f5f17cfe55 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
setInterval(() => { | |
let token = getId(); | |
if (token < 50000) { | |
subject.next(token); | |
} | |
else { | |
subject.error("Invalid token"); | |
} | |
}, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment