mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 07:57:20 +00:00
Merge pull request #68403 from wgliang/master.deprecate-Parallelize
Replace Parallelize with function ParallelizeUntil and formally depre… Kubernetes-commit: c00f19bd1518aaebf468f25ff3005c21dacbe561
This commit is contained in:
commit
672cf70624
@ -27,6 +27,8 @@ type DoWorkPieceFunc func(piece int)
|
|||||||
|
|
||||||
// Parallelize is a very simple framework that allows for parallelizing
|
// Parallelize is a very simple framework that allows for parallelizing
|
||||||
// N independent pieces of work.
|
// N independent pieces of work.
|
||||||
|
//
|
||||||
|
// Deprecated: Use ParallelizeUntil instead.
|
||||||
func Parallelize(workers, pieces int, doWorkPiece DoWorkPieceFunc) {
|
func Parallelize(workers, pieces int, doWorkPiece DoWorkPieceFunc) {
|
||||||
ParallelizeUntil(nil, workers, pieces, doWorkPiece)
|
ParallelizeUntil(nil, workers, pieces, doWorkPiece)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user