race-control

一个用于处理异步操作竞态条件的 JavaScript 工具。它确保只有最新的操作会被执行,并且会取消任何先前的操作,帮助你更好地管理异步任务的执行顺序

ambi

Ambi lets you execute any function ambidextrously; providing you the ability to execute any function (be it synchronous, asynchronous, returns, callbacks, promises) as if it returned a promise.