Module rune_modules::signal [−][src]
Expand description
The native signal
module for the Rune Language.
Usage
Add the following to your Cargo.toml
:
rune-modules = { version = "0.10.2", features = ["signal"] }
Install it into your context:
let mut context = rune::Context::with_default_modules()?;
context.install(&rune_modules::signal::module(true)?)?;
Use it in Rune:
ⓘ
fn main() {
signal::ctrl_c().await?;
println("Exiting...");
}
Functions
Construct the signal
module.