1.0.0 • Published 4 years ago
think_robin v1.0.0
think_robin
WeightedRound-Robin
Usage
const weightedRoundRobin = new robin();
weightedRoundRobin.add({"source": "aa", "weight": 1});
weightedRoundRobin.add({"source": "bb", "weight": 2});
weightedRoundRobin.add({"source": "cc", "weight": 3});
weightedRoundRobin.add({"source": "dd", "weight": 4});
console.log(weightedRoundRobin.get().source);
1.0.0
4 years ago