Replace Parallelize with function ParallelizeUntil and formally deprecate the Parallelize

Kubernetes-commit: c2622dd9d800280bcaeea9473340a4efb94946d2
This commit is contained in:
Guoliang Wang 2018-09-07 17:17:27 +08:00 committed by Kubernetes Publisher
parent 1f8420dc26
commit b5eba4c261

View File

@ -27,6 +27,8 @@ type DoWorkPieceFunc func(piece int)
// Parallelize is a very simple framework that allows for parallelizing
// N independent pieces of work.
//
// Deprecated: Use ParallelizeUntil instead.
func Parallelize(workers, pieces int, doWorkPiece DoWorkPieceFunc) {
ParallelizeUntil(nil, workers, pieces, doWorkPiece)
}