concurrency.js 0.0.3-beta → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,59 +0,0 @@
1
- // /**
2
- // *
3
- // * Package: concurrency.js
4
- // * Author: Ganesh B
5
- // * Description: npm module to work with concurrency - worker threads and worker processes easily using simple functions and script files
6
- // * Install: npm i --save
7
- // * Github: https://github.com/ganeshkbhat/concurrency
8
- // * npmjs Link: https://www.npmjs.com/package/concurrency.js
9
- // * File: test.demos.threads.js
10
- // * File Description:
11
- // *
12
- // */
13
-
14
- // /* eslint no-console: 0 */
15
-
16
- // 'use strict';
17
-
18
-
19
- // const expect = require('chai').expect;
20
- // const path = require("path");
21
- // const { _concurrencyThreads } = require("../index.js");
22
-
23
-
24
- // describe('test-.js::concurrency.js: [Test A] Test Suite for concurrency.js .threads in main repo directory', function () {
25
-
26
- // it('[Test A] Test for threads ', function (done) {
27
- // var responses;
28
- // _concurrencyThreads(__filename, {
29
- // data: {
30
- // message: "Testing data",
31
- // url: "https://www.google.com"
32
- // },
33
- // childData: "Testing child data"
34
- // }).then((d) => {
35
- // console.log(JSON.stringify(d));
36
- // responses = d;
37
- // done();
38
- // });
39
- // expect(responses).to.equal({
40
- // "message": [
41
- // { "pid": 11660, "message": "\"Hello from child. - Thread: 11660", "threadId": 1 },
42
- // {
43
- // "closeChild": true,
44
- // "pid": 11660,
45
- // "childMessageData": [
46
- // { "pid": 11660, "message": "Hello, world! - Server: 11660" },
47
- // { "closeChild": true }],
48
- // "result": [],
49
- // "threadId": 1
50
- // }
51
- // ],
52
- // "result": []
53
- // });
54
- // done();
55
- // });
56
-
57
- // });
58
-
59
-
@@ -1,68 +0,0 @@
1
- // /**
2
- // *
3
- // * Package: concurrency.js
4
- // * Author: Ganesh B
5
- // * Description: npm module to work with concurrency - worker threads and worker processes easily using simple functions and script files
6
- // * Install: npm i --save
7
- // * Github: https://github.com/ganeshkbhat/concurrency
8
- // * npmjs Link: https://www.npmjs.com/package/concurrency.js
9
- // * File: test.demos.threads.js
10
- // * File Description:
11
- // *
12
- // */
13
-
14
- // /* eslint no-console: 0 */
15
-
16
- // 'use strict';
17
-
18
-
19
- // const expect = require('chai').expect;
20
- // const path = require("path");
21
- // const { _concurrencyThreads } = require("../index.js");
22
-
23
- // describe('test-.js::concurrency.js: [Test A] Test Suite for concurrency.js .threads in main repo directory', function () {
24
-
25
- // it('[Test A] Test for ', function (done) {
26
- // var responses;
27
- // let threads = _concurrencyThreadsAsync("C:\\Users\\GB\\Documents\\projects\\requireurl\\concurrency\\demos\\demos.threads.js", {
28
- // data: {
29
- // message: "Testing parent data",
30
- // url: "https://www.google.com"
31
- // }, childData: "Test data from child"
32
- // });
33
-
34
- // /**
35
- // {
36
- // "message":[
37
- // {"pid":3764,"message":"\"Hello from child. - Thread: 3764","threadId":1},
38
- // {"closeChild":true,"pid":3764,
39
- // "childMessageData":[
40
- // {"pid":3764,"message":"Hello, world! - Server: 3764"},
41
- // {"closeChild":true}
42
- // ],
43
- // "result":[],
44
- // "threadId":1
45
- // }
46
- // ],
47
- // "result":[]
48
- // }
49
- // */
50
-
51
- // expect(threads).to.equal({
52
- // "message": [
53
- // { "pid": 3764, "message": "\"Hello from child. - Thread: 3764", "threadId": 1 },
54
- // {
55
- // "closeChild": true, "pid": 3764,
56
- // "childMessageData": [
57
- // { "pid": 3764, "message": "Hello, world! - Server: 3764" },
58
- // { "closeChild": true }
59
- // ],
60
- // "result": [],
61
- // "threadId": 1
62
- // }],
63
- // "result": []
64
- // });
65
- // done();
66
- // });
67
- // });
68
-