R/downloadTileAndUpload.R
numCoresToUse.RdThis function estimates the number of CPU cores that can be safely used for parallel processing, taking into account a minimum threshold, the total number of physical cores, and currently active threads.
numCoresToUse(min = 2, max = NULL)An integer representing the number of cores that can be used for
parallel tasks, ensuring at least min cores are used, while subtracting
one for the current process and an estimate of actively used threads (via
detectActiveCores()).
This function depends on detectActiveCores() and is not supported on
Windows systems.
if (FALSE) {
numCoresToUse()
numCoresToUse(min = 4)
}