孤独プログラマー譚

孤独死が近い。

RxJS exhaustMap, switchMap

exhaustMapは、後続の処理をキャンセル。

rx.of(1, 2, 3)
.pipe(
  op.exhaustMap(obs), // 1
)
.subscribe(cl)


switchMapは、先行の処理をキャンセル。

rx.of(1, 2, 3)
.pipe(
  op.switchMap(obs), // 3
)
.subscribe(cl)