Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyue.Wang authored and Xinyue.Wang committed Jun 27, 2023
1 parent a612d9b commit 8d6c81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wait_any.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func WaitAny(ctx context.Context, options *WaitAnyOptions, tasks ...Waitable) er
}
}

// we have at least 1 error when FailOnAnyError is not set, return first one.
// when all tasks failed and FailOnAnyError is not set, return first one.
// caller can get error for individual task by using Wait(),
// it would return immediately after this WaitAny()
return errList[0]
Expand Down

0 comments on commit 8d6c81f

Please sign in to comment.