TIL: one can return from an async block
Didn't realize before today that the following is possible:
#[tokio::main]
async fn main() {
let f = async { return 92 };
assert_eq!(f.await, 92);
}
Didn't realize before today that the following is possible:
#[tokio::main]
async fn main() {
let f = async { return 92 };
assert_eq!(f.await, 92);
}