mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Use of async_std::task::sleep instead of tokio::time::sleep (#2939)
This commit is contained in:
parent
9816b402fc
commit
14a8902374
1 changed files with 1 additions and 1 deletions
|
@ -1,8 +1,8 @@
|
||||||
//! A simple little clock that updates the time every few milliseconds.
|
//! A simple little clock that updates the time every few milliseconds.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
use async_std::task::sleep;
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use tokio::time::sleep;
|
|
||||||
use web_time::Instant;
|
use web_time::Instant;
|
||||||
|
|
||||||
const STYLE: &str = asset!("./examples/assets/clock.css");
|
const STYLE: &str = asset!("./examples/assets/clock.css");
|
||||||
|
|
Loading…
Reference in a new issue