Задачи на async/await в Rust. Часть 1
Сделайте async fn hello() -> String.
Вызовите async fn через runtime (tokio concept).
Дан код:
async fn fetch() -> Result<String, reqwest::Error>
Опишите async signature.
Сравните async и threads.
Сделайте async fn с delay (tokio::time::sleep).
Используйте .await для future.
Дан код:
async fn add(a: i32, b: i32) -> i32
Await результат.
Future trait (concept).
Blocking vs async.
Сделайте простой async main (tokio).