[−][src]Module rune_modules::time
The native time module for the Rune Language.
Usage
Add the following to your Cargo.toml:
runestick = "0.2"
runestick-modules = {version = "0.2", features = ["time"]}
Install it into your context:
let mut context = runestick::Context::with_default_packages()?; context.install(&rune_modules::time::module()?)?;
Use it in Rune:
ⓘThis example is not tested
use time; fn main() { time::delay_for(time::Duration::from_secs(10)).await; println("Message after 10 seconds!"); }
Functions
| module | Get the module for the time package. |