Closed dayongkr closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
es-toolkit | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 22, 2024 4:25am |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.77%. Comparing base (
5c551b8
) to head (db336da
).
I am not really sure if we add this feature to throttle. However, we might add this called throttleAsync
as an async library.
I am not really sure if we add this feature to throttle. However, we might add this called
throttleAsync
as an async library.
I agree with adding a method called throttleAsync. I will reopen the issue for further discussion.
Description
At now,
es-toolkit/throttle
has only a time based feature.But if we also support promise based feature, we can do this:
I think that this feature is also good for preventing double(or nth)-clicked.
I'm not sure this feature is good for
es-toolkit
, so I stop working. But this approach is acceptable, then I am going to improve interface and change docs.