pub fn build_runtime( threads: Option<usize>, chunk_size_events: Option<NonZeroUsize>, thread_name: &str, ) -> Result<Runtime, ExitCode>