Skip to content

Commit

Permalink
clean the deprecated func Parallelize
Browse files Browse the repository at this point in the history
Kubernetes-commit: a10021787b2d037e3c1d44a205980fd48ac23eff
  • Loading branch information
danielqsj authored and k8s-publishing-bot committed Apr 15, 2019
1 parent 4dc5e11 commit f12b22a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions util/workqueue/parallelizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ import (

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)
}

// ParallelizeUntil is a framework that allows for parallelizing N
// independent pieces of work until done or the context is canceled.
func ParallelizeUntil(ctx context.Context, workers, pieces int, doWorkPiece DoWorkPieceFunc) {
Expand Down

0 comments on commit f12b22a

Please sign in to comment.