Options
All
  • Public
  • Public/Protected
  • All
Menu
collboard-modules-sdk

Type parameters

  • TName

  • TTaskResult

Hierarchy

  • Destroyable
    • ThrottleQueues

Implements

  • IDestroyable

Index

Constructors

  • Type parameters

    • TName

    • TTaskResult

    Parameters

    Returns ThrottleQueues<TName, TTaskResult>

Properties

options: any
throttleQueues: any

Accessors

  • get isDestroyed(): boolean
  • Is this object destroyed?

    Returns boolean

Methods

  • addSubdestroyable(...subdestroyable: ITeardownLogic[]): ThrottleQueues<TName, TTaskResult>
  • Binds new registration with itself. This registration/destroyable will be destroyed with this.

    Parameters

    • Rest ...subdestroyable: ITeardownLogic[]

    Returns ThrottleQueues<TName, TTaskResult>

  • checkWhetherNotDestroyed(errorMessage?: string, runBeforeError?: () => void): void
  • Checks, whether the object is not destroyed

    Parameters

    • Optional errorMessage: string

      Message that will replace default one before error

    • Optional runBeforeError: () => void

      Callback runed before error is thrown; typically this can be some logging

        • (): void
        • Returns void

    Returns void

  • destroy(): Promise<void>
  • Returns Promise<void>

  • Parameters

    • key: TName

    Returns ThrottleQueue<TTaskResult>

  • isDestroyable(obj: any): obj is IDestroyable
  • Chcek whether the given object is destroyable

    Parameters

    • obj: any

    Returns obj is IDestroyable