Function AvoidDoubleExecution
- AvoidDoubleExecution(delay?): ((_target, _key, descriptor) => PropertyDescriptor)
Parameters
Optional delay: number = 500
Returns ((_target, _key, descriptor) => PropertyDescriptor)
- The decorated method descriptor.
- (_target, _key, descriptor): PropertyDescriptor
Parameters
_target: any
_key: string
descriptor: PropertyDescriptor
Returns PropertyDescriptor
A decorator that prevents a method from being executed multiple times within a specified delay.