• If no value is emitted before the duration runs out, emit the default value

    Type Parameters

    • T
    • TVal

    Parameters

    • duration: number

      Timeout in ms

    • defaultVal: TVal

      The default value

    Returns OperatorFunction<T, T | TVal>