async-sleep-aki 0.1.1

It provides simple `async_sleep()` that work well in both web browsers and native applications.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 27.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.97 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aki-akaguma

async-sleep-aki

crate Docs Rust Version Apache2/MIT licensed Test ubu Test mac Test win

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.

use async_sleep_aki::{async_sleep, Duration};
async_sleep(Duration::from_millis(100)).await;

Implementation

If target is wasm32-unknown-unknown, calls gloo_timers::future::sleep(), otherwise calls tokio::time::sleep().

Changelogs

This crate's changelog here.

License

This project is licensed under either of

at your option.