RemoveElement removes an element from the list and updates the index
(element *list.Element[task.Task])
| 214 | |
| 215 | // RemoveElement removes an element from the list and updates the index |
| 216 | func (ts *TaskStorage) RemoveElement(element *list.Element[task.Task]) task.Task { |
| 217 | ts.mu.Lock() |
| 218 | defer ts.mu.Unlock() |
| 219 | |
| 220 | return ts.removeElement(element) |
| 221 | } |
| 222 | |
| 223 | // GetLast returns the last task in the queue |
| 224 | func (ts *TaskStorage) GetLast() task.Task { |
no test coverage detected