带间隔的 concatMap 未按预期工作

concatMap with interval is not working as expected

我正在尝试理解为什么我的代码没有按照我期望的方式运行。

如果您将以下代码复制并粘贴到 https://stackblitz.com,您会看到它等待 4 秒,然后每秒显示 'aaaa' 而不是每秒显示 'bbbb'。为什么?

import { from, of, race, timer, interval } from 'rxjs';
import { groupBy, mergeMap, toArray, map,merge, reduce, concatMap, delay, concat, timeout, catchError, take } from 'rxjs/operators';

const obs$ = interval(4000).pipe(map(() => 'aaaa'));
const obs2$ = interval(1000).pipe(map(() => 'bbbb'));
 
const result$ = obs$.pipe(concatMap(() => obs2$));
 
const subscribe = obs$.subscribe(val => console.log(val + ' ' + new Date().toLocaleTimeString()));  
import { from, of, race, timer, interval } from 'rxjs';
import { groupBy, mergeMap, toArray, map,merge, reduce, concatMap, delay, concat, timeout, catchError, take } from 'rxjs/operators';


const obs$ = interval(14000).pipe(map(() => 'aaaa'), take(5));
const obs2$ = interval(1000).pipe(map(() => 'bbbb'));

const result$ = obs$.pipe(concatMap(() => obs2$));

const subscribe = result$.subscribe(val => console.log(val + ' ' + new Date().toLocaleTimeString()));