Created
April 21, 2021 08:18
-
-
Save CubikNeRubik/372c1a85cb16ffe5e9cabf845d9a888a to your computer and use it in GitHub Desktop.
RxJS. Delayed output
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 { interval, of } = Rx; | |
const { concatAll, map, first, delay } = RxOperators; | |
of(...[1,2,3,4]).pipe( | |
map(val => | |
of(val).pipe( | |
delay(1000), | |
first(), | |
) | |
), | |
concatAll() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment