UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

24 lines 590 B
export default (ticker = queueMicrotask) => { const queued = new Map(); const execute = () => { for (const [cb, args] of queued) cb(...args); queued.clear(); started = false; }; let started = false; const start = () => { if (started) return; started = true; ticker(execute, true); }; return [ (item, args) => { start(); queued.set(item, args); }, (item) => void queued.delete(item) ]; }; //# sourceMappingURL=callbackSystemWithArgs.js.map