Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MetricObservable

Hierarchy

  • MetricObservable

Index

Properties

next

next: (value: number) => void

Sets the next value for observable metric

param

Type declaration

    • (value: number): void
    • Parameters

      • value: number

      Returns void

subscribe

subscribe: (callback: (value: number) => void) => void

Subscribes for every value change

param

Type declaration

    • (callback: (value: number) => void): void
    • Parameters

      • callback: (value: number) => void
          • (value: number): void
          • Parameters

            • value: number

            Returns void

      Returns void

unsubscribe

unsubscribe: (callback?: undefined | ((value: number) => void)) => void

Removes the subscriber

param

Type declaration

    • (callback?: undefined | ((value: number) => void)): void
    • Parameters

      • Optional callback: undefined | ((value: number) => void)

      Returns void