/**
*
* @param numberOfWorkers
+ * @returns
*/
function generateWorkersArray (numberOfWorkers) {
return [...Array(numberOfWorkers).keys()]
let nextWorkerIndex
/**
- *
+ * @returns
*/
function roundRobinTernaryOffByOne () {
nextWorkerIndex =
}
/**
- *
+ * @returns
*/
function roundRobinTernaryWithNegation () {
nextWorkerIndex =
}
/**
- *
+ * @returns
*/
function roundRobinTernaryWithPreChoosing () {
const chosenWorker = workers[nextWorkerIndex]
}
/**
- *
+ * @returns
*/
function roundRobinIncrementModulo () {
const chosenWorker = workers[nextWorkerIndex]