time: Update examples, tests, and other code to use new Timer::after_x convenience methods

This commit is contained in:
Adam Greig
2023-10-15 00:57:25 +01:00
parent 7559f9e583
commit 0621e957a0
174 changed files with 496 additions and 501 deletions

View File

@ -1,7 +1,7 @@
#![feature(type_alias_impl_trait)]
use embassy_executor::Spawner;
use embassy_time::{Duration, Timer};
use embassy_time::Timer;
#[embassy_executor::task]
async fn ticker() {
@ -19,7 +19,7 @@ async fn ticker() {
log::info!("tick {}", counter);
counter += 1;
Timer::after(Duration::from_secs(1)).await;
Timer::after_secs(1).await;
}
}