lib/utils.js
function(signal)
    {
        return new Promise( resolve =>
        {
            for (let uniqueID in cluster.workers)
            {
                if (cluster.workers.hasOwnProperty(uniqueID))
                {
                    const worker = cluster.workers[uniqueID];

                    worker.kill(signal);
                }
            }

            resolve();
        });
    }
function(signal)
    {
        return new Promise( resolve =>
        {
            for (let uniqueID in cluster.workers)
            {
                if (cluster.workers.hasOwnProperty(uniqueID))
                {
                    const worker = cluster.workers[uniqueID];

                    worker.kill(signal);
                }
            }

            resolve();
        });
    }
function ( signal ) { return new Promise ( resolve => { for ( let uniqueID in cluster . workers ) { if ( cluster . workers . hasOwnProperty ( uniqueID ) ) { const worker = cluster . workers [ uniqueID ] ; worker . kill ( signal ) ; } } resolve ( ) ; } ) ; }
Kills all workers with the given signal.
@param  {Number} signal
Kills all workers with the given signal .