mirror of
https://github.com/debug-js/debug.git
synced 2026-01-18 16:12:38 +00:00
17 lines
266 B
JavaScript
17 lines
266 B
JavaScript
|
|
var a = require('../')('worker a')
|
|
, b = require('../')('worker b');
|
|
|
|
function work() {
|
|
a('doing some work');
|
|
setTimeout(work, Math.random() * 1000);
|
|
}
|
|
|
|
work();
|
|
|
|
function workb() {
|
|
b('doing some work');
|
|
setTimeout(workb, Math.random() * 2000);
|
|
}
|
|
|
|
workb(); |