Created
February 23, 2017 12:58
-
-
Save kaosat-dev/5d99189ffbbc8a120fd93496c75bf526 to your computer and use it in GitHub Desktop.
Variable periodic (most.js)
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
settingsState$ | |
.flatMap(function (pollRate) { // refresh data list every x ms | |
console.log('pollRate changed, do it every',pollRate) | |
const id = Math.floor(Math.random()*100,1) | |
return constant(id, periodic(pollRate)) | |
}) | |
.forEach(x=>console.log('combined state stuff',x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment