aboutsummaryrefslogtreecommitdiff
path: root/examples/wasm/src
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:57:25 +0100
committerAdam Greig <[email protected]>2023-10-15 01:30:12 +0100
commit0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch)
treef6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/wasm/src
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/wasm/src')
-rw-r--r--examples/wasm/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wasm/src/lib.rs b/examples/wasm/src/lib.rs
index edfe8bafc..1141096fb 100644
--- a/examples/wasm/src/lib.rs
+++ b/examples/wasm/src/lib.rs
@@ -1,7 +1,7 @@
1#![feature(type_alias_impl_trait)] 1#![feature(type_alias_impl_trait)]
2 2
3use embassy_executor::Spawner; 3use embassy_executor::Spawner;
4use embassy_time::{Duration, Timer}; 4use embassy_time::Timer;
5 5
6#[embassy_executor::task] 6#[embassy_executor::task]
7async fn ticker() { 7async fn ticker() {
@@ -19,7 +19,7 @@ async fn ticker() {
19 log::info!("tick {}", counter); 19 log::info!("tick {}", counter);
20 counter += 1; 20 counter += 1;
21 21
22 Timer::after(Duration::from_secs(1)).await; 22 Timer::after_secs(1).await;
23 } 23 }
24} 24}
25 25