api / org.gradle.concurrent / ParallelismConfiguration / setMaxWorkerCount

setMaxWorkerCount

abstract fun setMaxWorkerCount(maxWorkerCount: Int): Unit

Specifies the maximum number of concurrent workers used for underlying build operations.

Exceptions

IllegalArgumentException - if maxWorkerCount is < 1

See Also
#getMaxWorkerCount()