async/await 157 We'll base the following examples on the exact same code as we did in the first one. In the repository, you'll find this example under ch07/b-async-await. If you write every example from the book and don't rely on the existing code in the repository, you can do one of two things: Keep changing the code in the first example Create a new cargo project called b-async-await and copy everything in the src folder and the dependencies section from Cargo. toml from the previous example over to the new one. No matter what you choose, you should have the same code in front of you. Let's simply change the code in main. rs to this: ch07/b-async-await/src/main. rs use std::time::Instant; mod http; mod future; use future::*; use crate::http::Http; fn get_path(i: usize)-> String { format!("/{}/Hello World{i}", i * 1000) } coroutine fn async_main() { println!("Program starting"); let txt = Http::get(&get_path(0)). wait; println!("{txt}"); let txt = Http::get(&get_path(1)). wait; println!("{txt}"); let txt = Http::get(&get_path(2)). wait; println!("{txt}"); let txt = Http::get(&get_path(3)). wait; println!("{txt}"); let txt = Http::get(&get_path(4)). wait; println!("{txt}"); }