Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Protected _intervals

_intervals: {}

Store for named intervals

Type declaration

  • [name: string]: number

Protected _subscriptions

_subscriptions: {}

Store for named subscription unsub callbacks

Type declaration

  • [name: string]: Subscription | (() => void)

Protected _timers

_timers: {}

Store for named timers

Type declaration

  • [name: string]: number

Methods

Protected clearInterval

  • clearInterval(name: string): void

Protected clearTimeout

  • clearTimeout(name: string): void

destroy

  • destroy(): void

Protected interval

  • interval(name: string, fn: () => void, delay?: number): void
  • Creates a named interval

    Parameters

    • name: string

      Name of the interval

    • fn: () => void

      Callback function for the interval

        • (): void
        • Returns void

    • Default value delay: number = 300

      Callback delay

    Returns void

Protected subscription

  • subscription(name: string, unsub: Subscription | (() => void)): void
  • Store named subscription

    Parameters

    • name: string

      Name of the subscription

    • unsub: Subscription | (() => void)

      Unsubscribe callback or Subscription object

    Returns void

Protected timeout

  • timeout(name: string, fn: () => void, delay?: number): void
  • Creates a named timer

    Parameters

    • name: string

      Name of the timer

    • fn: () => void

      Callback function for the timer

        • (): void
        • Returns void

    • Default value delay: number = 300

      Callback delay

    Returns void

Protected unsub

  • unsub(name: string): void
  • Call unsubscribe callback with the given name

    Parameters

    • name: string

      Name of the subscription

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc