Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MethodFuse

Hierarchy

  • MethodFuse

Index

Constructors

constructor

Properties

Private breaked

breaked: boolean = false

Private breakingTime

breakingTime: number = 5000

Private coolDownTime

coolDownTime: number = 1000

Private curLoad

curLoad: number = 0

Private maxLoad

maxLoad: number = 3

Private name

name: string = "unnamed"

Private resetTimer

resetTimer: any = null

Methods

proxy

  • proxy(originMethod: (...any: any[]) => Promise<any>): (Anonymous function)
  • Parameters

    • originMethod: (...any: any[]) => Promise<any>
        • (...any: any[]): Promise<any>
        • Parameters

          • Rest ...any: any[]

          Returns Promise<any>

    Returns (Anonymous function)

reset

  • reset(): void

resetAfter

  • resetAfter(ms: any): void

Generated using TypeDoc