src/process/master.js
// Forks worker processes to carry out tasks
Forks worker processes to carry out tasks
Forks worker processes to carry out tasks
createProcesses() {
            Object.keys(this.workers).forEach(type => {
                const env = {
                    'type': type,
                    'verbose': config.verbose,
                };
                this.workers[type] = this.fork(type, env);
            });
        }
createProcesses ( ) { Object . keys ( this . workers ) . forEach ( type => { const env = { 'type' : type , 'verbose' : config . verbose , } ; this . workers [ type ] = this . fork ( type , env ) ; } ) ; }
Forks worker processes to carry out tasks
Forks worker processes to carry out tasks