uranium-rs 1.0.3

Lib for downloading/making minecraft and modpacks
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::variables::constants::{DEFAULT_NTHREADS, NTHREADS};

#[allow(non_snake_case)]
#[allow(unused)]
/// Returns the actual max threads allowed.
pub fn N_THREADS() -> usize {
    match NTHREADS.read() {
        Ok(e) => *e,
        Err(_) => DEFAULT_NTHREADS,
    }
}