Last active
January 28, 2019 16:25
-
-
Save kievsash/9890aeddb85b02a9973bd93659c8354f to your computer and use it in GitHub Desktop.
groupBy Solution
This file contains hidden or 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 selector = (x) => x.userId | |
const throttleTimeout = 3000; | |
source$ | |
.pipe( | |
groupBy(selector), | |
mergeMap((group$) => group$.pipe(throttleTime(throttleTimeout))) | |
) | |
.subscribe(showNotification); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment