Add adds a new item to the Round-Robin scheduler.
(item string)
| 66 | |
| 67 | // Add adds a new item to the Round-Robin scheduler. |
| 68 | func (r *RoundRobin) Add(item string) { |
| 69 | r.mtx.Lock() |
| 70 | defer r.mtx.Unlock() |
| 71 | |
| 72 | r.items = append(r.items, item) |
| 73 | } |
| 74 | |
| 75 | // Delete deletes an item from the Round-Robin scheduler. |
| 76 | func (r *RoundRobin) Delete(item string) { |