BLUE
PHP 7.4.33
Path:
/usr/share/nodejs/function-loop
Run
Logout
Edit File
Size: 841 B
Close
/usr/share/nodejs/function-loop/index.js
Text
Base64
module.exports = loop // this weird little engine is to loop if the cb's keep getting // called synchronously, since that's faster and makes shallower // stack traces, but recurse if any of them don't fire this tick function loop (self, arr, cb, onerr, i) { if (!i) i = 0 var running = false while (i < arr.length && !running) { running = true var sync = true try { var ret = arr[i].call(self, next) } catch (er) { return onerr.call(self,er) } if (ret && typeof ret.then === 'function') ret.then(next.bind(self, null), onerr.bind(self)) i++ sync = false } function next (er) { if (er) return onerr.call(self, er) else if (!sync) return loop(self, arr, cb, onerr, i) running = false } if (i >= arr.length && !running) return cb.call(self) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
841 B
lrw-r--r--
2021-11-24 13:35:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
663 B
lrw-r--r--
2021-11-24 13:35:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).