rsiot/executor/
sleep.rs

1//! Функция `sleep` зависит от платформы
2
3#[cfg(target_arch = "wasm32")]
4pub use gloo::timers::future::sleep;
5#[cfg(not(target_arch = "wasm32"))]
6pub use tokio::time::sleep;