mirror of
https://github.com/zerotier/eggshell.git
synced 2026-05-22 16:27:01 -07:00
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "eggshell"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2018"
|
||||
authors = ["Erik Hollensbe <linux@hollensbe.org>", "Adam Ierymenko <adam.ierymenko@zerotier.com>"]
|
||||
description = "Remove testing docker containers after this object goes away"
|
||||
|
||||
@@ -63,6 +63,9 @@ lazy_static! {
|
||||
/// your tests. A wait function can be supplied to perform any final settling before terminating
|
||||
/// the test program.
|
||||
///
|
||||
/// In the event multiple signal handlers are spawned, N+1 handlers will simply run the wait hook
|
||||
/// and return. Only the first execution is responsible for reaping all eggshells.
|
||||
///
|
||||
/// ```
|
||||
/// use eggshell::supervise_signals;
|
||||
/// use std::time::Duration;
|
||||
@@ -83,6 +86,7 @@ where
|
||||
supervisor.replace(());
|
||||
drop(supervisor)
|
||||
} else {
|
||||
wait_hook.await;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user