pub fn prepare_tokio_runtime(
num_cpu_threads: Option<NonZeroUsize>,
num_io_threads: Option<NonZeroUsize>,
) -> Result<Runtime>Expand description
Prepare an optimized version of the tokio runtime setup for hopr-lib specifically.
Divide the available CPU parallelism by 2, since half of the available threads are to be used for IO-bound and half for CPU-bound tasks.