    

 ## On this page

  

 

 # setNumThreads

 Last update: 30.07.2026 

public [setNumThreads](set-num-threads.md)(numThreads: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))

Sets the number of threads to be used when processing a job in parallel

#### Parameters

numThreadsthe number of threads to be used