"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../frameloop/sync-time.mjs.js"),r=require("../frameloop/frame.mjs.js");exports.delay=function(t,s){const a=e.time.now(),m=e=>{let{timestamp:o}=e;const c=o-a;c>=s&&(r.cancelFrame(m),t(c-s))};return r.frame.setup(m,!0),()=>r.cancelFrame(m)};
//# sourceMappingURL=delay.mjs.js.map
