MCPcopy
hub / github.com/go-task/task / isContextError

Function isContextError

watch.go:147–153  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

145}
146
147func isContextError(err error) bool {
148 if taskRunErr, ok := err.(*errors.TaskRunError); ok {
149 err = taskRunErr.Err
150 }
151
152 return errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)
153}
154
155func closeOnInterrupt(w *fsnotify.Watcher) {
156 ch := make(chan os.Signal, 1)

Callers 1

watchTasksMethod · 0.85

Calls 1

IsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…