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
const reset$ = new Subject(); | |
// the API call we want to poll | |
const poller$ = myApi.getData() | |
.pipe(poll(reset$, 30000)); // 30 secs | |
// no polling yet... | |
const sub1 = poller$.subsbribe(data => console.log('POLL TICK 1') ); | |
const sub2 = poller$.subsbribe(data => console.log(' & 2') ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
license: gpl-3.0 |
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
license: gpl-3.0 |