Why does the code
interval(1000) .pipe( take(15), bufferTime(5000) ) .subscribe(sequence => { console.log(sequence); });
generates
[ 0, 1, 2, 3 ] [ 4, 5, 6, 7, 8 ] [ 9, 10, 11, 12, 13 ] [ 14 ]
Why the first batch only has 4 items?
https://stackoverflow.com/questions/66947794/rxjs-operator-buffertime April 05, 2021 at 11:05AM
没有评论:
发表评论