@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
3 lines (2 loc) • 347 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={},y=async(o,i,m,a,t,...u)=>{const c=Date.now(),n=`${o}-${t}`,e=s[n];if(e&&c-e.timestamp<i)return e.promise;const r=m(a,t,...u);return s[n]={timestamp:c,promise:r},r};exports.timeCacheEntityPromiseFunc=y;
//# sourceMappingURL=time-cache-entity-promise.js.map