numThreads

fun numThreads(raw: Int, target: Int): Int

Utility function to determine a number of threads from a config option.

Parameters

raw

The config option value passed by the user.

target

The desired number of threads.