Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RxJS. Delayed output
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