pub(crate) fn build_tokio_runtime(threads: Option<usize>) -> Runtime
Build the tokio runtime with the configured number of threads. If set to None, then the maximum of the system is used.