Open alecmocatta opened 4 years ago
Currently using tokio with contellation is a bit unwieldy:
fn main() { init(Resources::default()); tokio::runtime::Builder::new() .threaded_scheduler() .enable_all() .build() .unwrap() .block_on(async { ... }) }
It could become:
#[constellation::main] #[tokio::main] async fn main() { ... }
Or
#[constellation::tokio::main] async fn main() { ... }
Or just this if we specialise on tokio?
#[constellation::main] async fn main() { ... }
Currently using tokio with contellation is a bit unwieldy:
It could become:
Or
Or just this if we specialise on tokio?