Explorar el Código

Use of async_std::task::sleep instead of tokio::time::sleep (#2939)

ASR-ASU hace 9 meses
padre
commit
14a8902374
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/clock.rs

+ 1 - 1
examples/clock.rs

@@ -1,8 +1,8 @@
 //! A simple little clock that updates the time every few milliseconds.
 //!
 
+use async_std::task::sleep;
 use dioxus::prelude::*;
-use tokio::time::sleep;
 use web_time::Instant;
 
 const STYLE: &str = asset!("./examples/assets/clock.css");