waiting

Crates.iowaiting
lib.rswaiting
version0.1.5
sourcesrc
created_at2024-07-17 17:23:16.639664
updated_at2024-08-17 13:22:32.300299
descriptionwaiting
homepagehttps://github.com/i18n-site/rust/tree/main/waiting
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1306359
size4,894
i18n.site (i18nsite)

documentation

README

waiting

use std::{thread, time::Duration};

use aok::{Result, OK};
use waiting::Waiting;

#[test]
fn test() -> Result<()> {
  let ing = Waiting::new("refresh version");
  thread::sleep(Duration::from_secs(3));
  ing.end("✅ task done");
  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Commit count: 21

cargo fmt