MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiTasksWait

Function apiTasksWait

api/task.go:39–43  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

37// @Success 200 ""
38// @Router /api/tasks-wait [get]
39func 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**

Callers

nothing calls this directly

Calls 2

TaskListMethod · 0.80
WaitMethod · 0.80

Tested by

no test coverage detected