File: connected-users-websocket/node_modules/express/node_modules/debug/example/worker.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   connected-users-websocket/node_modules/express/node_modules/debug/example/worker.js   Download  
File: connected-users-websocket/node_modules/express/node_modules/debug/example/worker.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 429 bytes
 

Contents

Class file image Download
// DEBUG=* node example/worker // DEBUG=worker:* node example/worker // DEBUG=worker:a node example/worker // DEBUG=worker:b node example/worker 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();