Crates.io | grace |
lib.rs | grace |
version | 0.1.0 |
source | src |
created_at | 2021-01-01 00:19:39.596721 |
updated_at | 2021-01-01 00:19:39.596721 |
description | Intercept shutdown requests in a portable way |
homepage | |
repository | https://github.com/Diggsey/grace |
max_upload_size | |
id | 329949 |
size | 23,368 |
Portable library for intercepting various kinds of shutdown signal, allowing your application to shutdown gracefully.
Windows does not have signals (although they are emulated to some
extent by libc
) so this crate uses the appropriate windows API
functions directly to respond to interrupt and shutdown requests.
On other platforms signals are used via the signal-stack
crate.