This commit is contained in:
Xinyue.Wang 2023-06-27 16:53:01 -07:00
Родитель a612d9bc0c
Коммит 8d6c81f893
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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