@lock
用于防暴击
// 装饰类字段箭头函数 @ a = async {}; // 装饰类成员函数 @ async {} // 用lock直接包裹函数 lock(()=>{}) addC = ;
用于防暴击
// 装饰类字段箭头函数 @ a = async {}; // 装饰类成员函数 @ async {} // 用lock直接包裹函数 lock(()=>{}) addC = ;
npm i at-lock
1
1.0.5
none
5.02 kB
5