@Summary Clear Tasks @Description **Removes finished and failed tasks from internal task list** @Tags Tasks @Produce json @Success 200 "" @Router /api/tasks-clear [post]
(c *gin.Context)
| 25 | // @Success 200 "" |
| 26 | // @Router /api/tasks-clear [post] |
| 27 | func apiTasksClear(c *gin.Context) { |
| 28 | list := context.TaskList() |
| 29 | list.Clear() |
| 30 | c.JSON(200, gin.H{}) |
| 31 | } |
| 32 | |
| 33 | // @Summary Wait for all Tasks |
| 34 | // @Description **Waits for and returns when all running tasks are complete** |