Why does Reqwest have use two await() calls?
Why are there two .await() in this call? What does each await() do?
let body = reqwest::get("https://www.rust-lang.org")
.await?
.text()
.await?;
println!("body = {:?}", body);
Why are there two .await() in this call? What does each await() do?
let body = reqwest::get("https://www.rust-lang.org")
.await?
.text()
.await?;
println!("body = {:?}", body);