Function voidablePersistentCache

  • Cache the last value of the observable Will stay alive without subscribers for the duration specified Every new value voids the observable until a value is emitted from the mapped observable

    Type Parameters

    • T
    • TOut

    Parameters

    • mapFunc: ((value: T) => Observable<TOut>)

      Function to generate an observable which populates the main observable after being voided

        • (value): Observable<TOut>
        • Parameters

          • value: T

          Returns Observable<TOut>

    • duration: number = 1000

      Keep alive duration is ms

    Returns OperatorFunction<T, TOut>