mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
17 lines
283 B
JavaScript
17 lines
283 B
JavaScript
|
|
var a = require('../')('worker a')
|
|
, 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(); |