pub fn sleep_thread(timeout: i64) -> Result<()>