📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 07:14:51
📂
/
/
opt
/
alt
/
alt-nodejs19
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
utils
✏️
Editing: pulse-till-done.js
const log = require('./log-shim.js') let pulseTimer = null const withPromise = async (promise) => { pulseStart() try { return await promise } finally { pulseStop() } } const pulseStart = () => { pulseTimer = pulseTimer || setInterval(() => { log.gauge.pulse('') }, 150) } const pulseStop = () => { clearInterval(pulseTimer) pulseTimer = null } module.exports = { withPromise, }
💾 Save Changes
❌ Cancel