IS
Size: a a a
IS
ИЛ
static
вжy
H
E
E
d
a
d
a
MK
MK
d
d
a
d
DN
DN
1 // main.rs
2 #[tokio::main]
3 async fn main() {
4 tokio::spawn(async {
5 get().await;
6 });
7
8 // another_module.rs
9
10 pub async fn get() -> Result<(), reqwest::Error> {
11 let client = reqwest::Client::new();
12 let resp = client.get("https://example.com").send().await?;
13 let body = resp.text().await?;
14 println!("{:?}", body);
15 Ok(())
16 }