aboutsummaryrefslogtreecommitdiff
path: root/examples/wasm/src
diff options
context:
space:
mode:
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