Add adds an item with weight to the WRR set. Add must be only called before any calls to Next.
(item any, weight int64)
| 24 | // Add adds an item with weight to the WRR set. Add must be only called |
| 25 | // before any calls to Next. |
| 26 | Add(item any, weight int64) |
| 27 | // Next returns the next picked item. |
| 28 | // |
| 29 | // Next needs to be thread safe. Add may not be called after any call to |
no outgoing calls