#interval #calling #update #function #dur

UpdateFunctions

A small package for calling a function at a desired interval

6 releases

0.1.6 Apr 16, 2022
0.1.5 Apr 16, 2022

#22 in #calling

22 downloads per month

MIT license

2.5MB

Contains (WOFF font, 680KB) doc/NanumBarunGothic.ttf.woff, (WOFF font, 400KB) doc/NanumBarunGothic.ttf.woff2, (WOFF font, 190KB) doc/FiraSans-Medium.woff, (WOFF font, 135KB) doc/FiraSans-Medium.woff2, (WOFF font, 185KB) doc/FiraSans-Regular.woff, (WOFF font, 130KB) doc/FiraSans-Regular.woff2 and 12 more.

Update Functions

A small package for calling a function at a desired interval

Usage

fn main() {
let dur = Duration::new(1, 0) // One second and 0 ms
UpdateFunctions::update(dur, Update)
}

pub fn Update() {
println!("Updating!");
}

Installation

In cargo.toml

UpdateFunctions = "0.1.3"

No runtime deps