Open sullyj3 opened 4 months ago
for tokio
, it seems like I need:
#[tokio::main]
async fn main() {
scoped_futures().await;
}
I'm happy to PR this example if that sounds good
Hi, please feel free to provide a PR to add docs. Yes, we assume a bit of working knowledge of futures/asyncs & in this crate, as this crate is about handling references/life-times in async programs.
Hi! I'm interested in using this library. However, as someone who hasn't done concurrency in rust before, I'm not quite sure how to get started.
The main docs page has this example:
But I'm not sure how to execute an
async fn
. This means as a beginner, I have to go and look at theasync-std
ortokio
docs to understand how to use this library, which is perhaps intended to be an abstraction layer over the top of them.