mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
[skip ci] Add desc comments for ProcessFuncParallel (#9130)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
9b095843e4
commit
7d87f0368f
@ -25,6 +25,7 @@ func GetFunctionName(i interface{}) string {
|
||||
}
|
||||
|
||||
// Reference: https://stackoverflow.com/questions/40809504/idiomatic-goroutine-termination-and-error-handling
|
||||
// ProcessFuncParallel process function in parallel.
|
||||
func ProcessFuncParallel(total, maxParallel int, f func(idx int) error, fname string) error {
|
||||
if maxParallel <= 0 {
|
||||
maxParallel = 1
|
||||
|
Loading…
Reference in New Issue
Block a user