🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 14:34:32 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
utils
📍 /usr/lib/node_modules/npm/lib/utils
🔄 Refresh
✏️
Editing: pulse-till-done.js
Read Only
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