async-sleep-aki
It provides simple async_sleep() that work well in both web browsers and native applications.
This can be used in the dioxus application.
Howto use
Just call async_sleep() on the frontend or backend.
async_sleep.await;
In dioxus component:
use *;
use delayed_call;
Implementation
If target is wasm32-unknown-unknown, calls gloo_timers::future::sleep(), otherwise calls tokio::time::sleep().
Changelogs
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.