MCPcopy Index your code
hub / github.com/docker/cli / terminalState

Function terminalState

cli/command/stack/remove.go:170–172  ·  view source on GitHub ↗
(state swarm.TaskState)

Source from the content-addressed store, hash-verified

168}
169
170func terminalState(state swarm.TaskState) bool {
171 return numberedStates[state] > numberedStates[swarm.TaskStateRunning]
172}
173
174func waitOnTasks(ctx context.Context, apiClient client.APIClient, namespace string) error {
175 terminalStatesReached := 0

Callers 1

waitOnTasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…