at-lock
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@lock

用于防暴击

class Test {
  // 装饰类字段箭头函数
  @lock() a = async () => {};
 
  // 装饰类成员函数
  @lock()
  async b() {}
 
  // 用lock直接包裹函数 lock(()=>{})
  addC = lock(async () => {});
}

Readme

Keywords

none

Package Sidebar

Install

npm i at-lock

Weekly Downloads

1

Version

1.0.5

License

none

Unpacked Size

5.02 kB

Total Files

5

Last publish

Collaborators

  • gwuhaolin