Class IntervalReader

A class that dispatches actions at regular intervals.

Hierarchy

  • IntervalReader

Implements

Constructors

Properties

actionDispatcher: ((action, additionalContext) => void)

Type declaration

    • (action, additionalContext): void
    • Parameters

      • action: Action
      • additionalContext: any

      Returns void

intervalId?: Timeout
action: any
intervalInSeconds: number

Methods

  • Initializes the reader with an action dispatcher.

    Parameters

    • actionDispatcher: ((action, additionalContext) => void)

      The function to be called when dispatching action.

        • (action, additionalContext): void
        • Parameters

          • action: Action
          • additionalContext: any

          Returns void

    Returns void

Generated using TypeDoc