-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mjs
69 lines (60 loc) · 1.76 KB
/
index.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
*
* Package: concurrency.js
* Author: Ganesh B
* Description: npm module to work with concurrency - worker threads and worker processes easily using simple functions and script files
* Install: npm i concurrency.js --save
* Github: https://github.com/ganeshkbhat/concurrency
* npmjs Link: https://www.npmjs.com/package/concurrency.js
* File: index.mjs
* File Description:
*
*/
/* eslint no-console: 0 */
'use strict';
import {
_concurrencyThreads,
_concurrencyProcesses,
_concurrencyThreadsAsync,
_concurrencyClusters,
concurrencyThreads,
concurrencyProcesses,
concurrencyClusters,
concurrencyThreadsAsync,
concurrencyMultipleThreads,
loadbalancer, serverutils, algorithms,
sockets, certificates, default as concurrencyjs
} from "./index.js";
const concurrency = {
threads: _concurrencyThreads,
processes: _concurrencyProcesses,
clusters: _concurrencyClusters,
threadsAsync: _concurrencyThreadsAsync,
multipleThreads: _concurrencyMultipleThreads,
};
const loadbalancer = {
loadbalancer: loadbalancerjs.loadbalancer,
serverutils: loadbalancerjs.serverutils,
algorithms: loadbalancerjs.algorithms,
sockets: loadbalancerjs.sockets,
certificates: loadbalancerjs.certificates,
default: loadbalancerjs.default
};
export {
_concurrencyThreads,
_concurrencyProcesses,
_concurrencyClusters,
_concurrencyThreadsAsync,
_concurrencyMultipleThreads,
concurrencyThreads,
concurrencyProcesses,
concurrencyClusters,
concurrencyThreadsAsync,
concurrencyMultipleThreads,
concurrency,
loadbalancer
};
export default {
concurrencyjs: concurrencyjs,
loadbalancer: loadbalancer.default
};