Function monitorHandler

  • Decorates a handler such that when it is running, the given progressCallback is invoked at the specified interval, passing the interval time in msec as an option. Does not change the return type of the decorated handler - it is still TNext. Useful for getting progress events from effects that don't notify of progress intrinsically.

    Type Parameters

    • TRequest
    • TNext

    Parameters

    • opts: MonitorOptions
    • handler: ((req) => ObservableInput<TNext>)

    Returns ((req) => Observable<TNext>)