@Summary Wait for all Tasks @Description **Waits for and returns when all running tasks are complete** @Tags Tasks @Produce json @Success 200 "" @Router /api/tasks-wait [get]
(c *gin.Context)
| 37 | // @Success 200 "" |
| 38 | // @Router /api/tasks-wait [get] |
| 39 | func apiTasksWait(c *gin.Context) { |
| 40 | list := context.TaskList() |
| 41 | list.Wait() |
| 42 | c.JSON(200, gin.H{}) |
| 43 | } |
| 44 | |
| 45 | // @Summary Wait for Task |
| 46 | // @Description **Waits for and returns when given Task ID is complete** |