Is there reliable solution to get a snapshot of values currently buffered in ReplaySubject?
I came up with something like this, but not sure how reliable this solution is:
replaySubject.pipe(
takeUntil(timer(10).pipe(take(1)))
)
The timer factor above seems wrong to me as I have no warranty if all values have been emitted properly within given time (this applies to replay subjects with a lot of values).