var searchIndex = {}; searchIndex["ctrlc"] = {"doc":"A simple easy to use wrapper around Ctrl-C.\n# Example\n```no_run\nextern crate ctrlc;\nuse std::sync::atomic::{AtomicBool, Ordering};\nuse std::sync::Arc;","items":[[5,"set_handler","ctrlc","Sets up the signal handler for Ctrl-C using default polling rate of 100ms.\n# Example\n```\nctrlc::set_handler(|| println!("Hello world!"));\n```",null,{"inputs":[{"name":"f"}],"output":null}],[5,"set_handler_with_polling_rate","","Sets up the signal handler for Ctrl-C using a custom polling rate.\nThe polling rate is the amount of time the internal spinloop of CtrlC sleeps between\niterations. Because condition variables are not safe to use inside a signal handler,\nCtrlC (from version 1.1.0) uses a spinloop and an atomic boolean instead.",null,{"inputs":[{"name":"f"},{"name":"duration"}],"output":null}]],"paths":[]}; initSearch(searchIndex);