setNumThreads Last update: 18.06.2026 abstract fun setNumThreads(numThreads: Int) Get the number of threads that should be used for running in parallel; this is only a hint. Parameters numThreads the number of threads Throws IllegalArgumentException if the number of threads is invalid IllegalStateException if the value cannot currently be set