We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b82af commit e727641Copy full SHA for e727641
common/task/task.go
@@ -87,16 +87,18 @@ func (g *Group) RunContextList(contextList []context.Context) error {
87
}
88
89
selectedContext, upstreamErr := common.SelectContext(append([]context.Context{taskCancelContext}, contextList...))
90
- if selectedContext != 0 {
91
- returnError = E.Append(returnError, upstreamErr, func(err error) error {
92
- return E.Cause(err, "upstream")
93
- })
94
- }
95
96
if g.cleanup != nil {
97
g.cleanup()
98
99
100
<-taskContext.Done()
+
+ if selectedContext != 0 {
+ returnError = E.Append(returnError, upstreamErr, func(err error) error {
+ return E.Cause(err, "upstream")
+ })
101
+ }
102
103
return returnError
104
0 commit comments