runestick-time

Crates.iorunestick-time
lib.rsrunestick-time
version0.3.0
sourcesrc
created_at2020-08-07 15:27:37.550271
updated_at2020-09-02 17:15:48.619266
descriptionAn time module based on tokio::time for runestick.
homepagehttps://github.com/rune-rs/rune
repositoryhttps://github.com/rune-rs/rune
max_upload_size
id274031
size3,564
John-John Tedro (udoprog)

documentation

https://docs.rs/runestick-timer

README

Build Status

runestick-time

The runestick time package.

Usage

Add the following to your Cargo.toml:

runestick = "0.2"
runestick-time = "0.2"

Install it into your context:

let mut context = runestick::Context::with_default_packages()?;
context.install(runestick_time::module()?)?;

Use it in Rune:

use time;

fn main() {
    time::delay_for(time::Duration::from_secs(10)).await;
}
Commit count: 1373

cargo fmt