#scheduling #avoiding #someone #dirturb #illmatic

illmatic-scheduling

Scheduling library avoiding to dirturb someone

3 releases

0.1.2 May 29, 2021
0.1.1 May 29, 2021
0.1.0 May 29, 2021

#2 in #someone

AGPL-3.0-or-later

16KB
262 lines

Illmatic Scheduling: A scheduling library avoiding to dirturb someone.

How to use?

  let rt = tokio::runtime::Builder::new_multi_thread().enable_time().build().unwrap();
  rt.block_on(async move {
    let mut mgr = illmatic_scheduling::JobManager::new(&["firefox"], 10.0);
    for _i in 0..10 {
      if let Ok(count) = mgr.watch().await {
        // You have a `count` times to do something.
      }
      sleep(Duration::from_millis(1000)).await;
    }
  });

License

AGPL v3 or later

Dependencies

~5–12MB
~126K SLoC