Examples folder created
authorpioardi <alessandroardizio94@gmail.com>
Mon, 20 Jan 2020 10:54:01 +0000 (11:54 +0100)
committerpioardi <alessandroardizio94@gmail.com>
Mon, 20 Jan 2020 10:54:01 +0000 (11:54 +0100)
examples/dynamicExample.js [moved from dynamicExample.js with 91% similarity]
examples/normal.js [moved from normal.js with 100% similarity]
examples/staticExample.js [moved from staticExample.js with 89% similarity]
examples/yourWorker.js [moved from yourWorker.js with 87% similarity]

similarity index 91%
rename from dynamicExample.js
rename to examples/dynamicExample.js
index 11032a92fdf280b9816091e163c868d7597fd366..d483684de442ad97f6d721c316e0f20bb32eacbe 100644 (file)
@@ -1,4 +1,4 @@
-const DynamicThreadPool = require('./lib/dynamic')
+const DynamicThreadPool = require('../lib/dynamic')
 let resolved = 0
 let maxReached = 0
 const pool = new DynamicThreadPool(100, 200, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
similarity index 100%
rename from normal.js
rename to examples/normal.js
similarity index 89%
rename from staticExample.js
rename to examples/staticExample.js
index 074f37ca84fcc34c09b33581cbec7c91e4feeeaf..49dc02a54533254efb32466e944228375fccc653 100644 (file)
@@ -1,4 +1,4 @@
-const FixedThreadPool = require('./lib/fixed')
+const FixedThreadPool = require('../lib/fixed')
 let resolved = 0
 const pool = new FixedThreadPool(15,
   './yourWorker.js',
similarity index 87%
rename from yourWorker.js
rename to examples/yourWorker.js
index 34a85dbbe8f64040c027c44b78b6987c3d25d5d3..5036d5746be21fe1b48310b7909f0f6f0fb057b3 100644 (file)
@@ -1,5 +1,5 @@
 'use strict'
-const { ThreadWorker } = require('./lib/workers')
+const { ThreadWorker } = require('../lib/workers')
 
 class MyWorker extends ThreadWorker {
   constructor () {