UNPKG

timing-provider

Version:

An implementation of the timing provider specification.

6 lines 361 B
import { connect, partition, takeUntil, tap } from 'rxjs'; export const takeUntilFatalValue = (isFatalValue, handleFatalValue) => connect((values$) => { const [fatalEvent$, otherEvent$] = partition(values$, isFatalValue); return otherEvent$.pipe(takeUntil(fatalEvent$.pipe(tap(handleFatalValue)))); }); //# sourceMappingURL=take-until-fatal-value.js.map