Answer the question
In order to leave comments, you need to log in
How to display intermediate time in timer rxjs?
const time = 10000;
return timer(time).pipe(
takeUntil(this.subject),
map(() => {
console.log('end');
})
);
Answer the question
In order to leave comments, you need to log in
timer(5001).pipe(
src => merge(
src,
timer(5000).pipe(
tap(() => console.log('5s')),
takeUntil(src),
),
),
finalize(() => console.log('end')),
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question