pub fn spawn_stack_size<F>(f: F, stack_size: usize) -> JoinHandle<()> where
    F: FnOnce() + Send + 'static,