mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for ProcessFuncParallel (#9130)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9119/head
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