Async init #6

Merged
phoenix merged 2 commits from async into v0.3.0 2026-06-21 17:32:17 -04:00
Showing only changes of commit de4ebb00e5 - Show all commits
+9 -2
View File
@@ -1,3 +1,10 @@
fn main() {
println!("Hello, world!");
// TODO: Move this somewhere else
pub const SECONDS_TO_SLEEP: u64 = 5;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
loop {
println!("Do some work");
tokio::time::sleep(tokio::time::Duration::from_secs(SECONDS_TO_SLEEP)).await;
}
}