{Object} opts 下载的一些选项 */ var downloadAndroidPkg = function (opts) { if (downLoadHandler) { clearTimeout(downLoadHandler); downLoadHandler = null; } var stTime = new Date().getTime(); downLoadHandler = setTimeout(function () { if (new Date().getTime() - stTime < 3000) { ...
Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. @@ -3000,6 +3575,9 @@ packages: ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE...