term-handler 0.1.0

A library to wait for TERM signals (Ctrl-C) with a loop.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 779.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kitsuneninetails/term-handler-rust
    1 0 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kitsuneninetails

Term Handler

Handles waiting for a termination or interrupt signal with a loop. The loop will exit once the SIGTERM/SIGINT is sent (usually via Ctrl-C).

Usage:

    print!("Waiting for TERM signal");
    wait_for_term();
    print!("Term signal received, quitting!");