[][src]Module rune_modules::signal

The native signal module for the Rune Language.

Usage

Add the following to your Cargo.toml:

rune-modules = {version = "0.6.11", features = ["signal"]}

Install it into your context:

let mut context = runestick::Context::with_default_modules()?;
context.install(&rune_modules::signal::module()?)?;

Use it in Rune:

This example is not tested
fn main() {
    signal::ctrl_c().await?;
    println("Exiting...");
}

Functions

module

Construct the signal module.