Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Remove comments about signal handling
◌ CI pending Lorenz Leutgeb committed 9 months ago
commit 0cdea9c1f3c0b857909c0f76f59df75e0f492313
parent 005c43a698627f5e03c73e5bbf14c2a6a611b6c0
1 pending (1 total) View logs
1 file changed +1 -8
modified crates/radicle-term/src/spinner.rs
@@ -68,8 +68,7 @@ impl Spinner {
}

/// Create a new spinner with the given message. Sends animation output to `stderr` and success or
-
/// failure messages to `stdout`. This function handles signals, with there being only one
-
/// element handling signals at a time, and is a wrapper to [`spinner_to()`].
+
/// failure messages to `stdout`.
pub fn spinner(message: impl ToString) -> Spinner {
    if io::stderr().is_terminal() {
        spinner_to(message, RenderTarget::Stderr, RenderTarget::Stdout)
@@ -79,12 +78,6 @@ pub fn spinner(message: impl ToString) -> Spinner {
}

/// Create a new spinner with the given message, and send output to the given writers.
-
///
-
/// # Signal Handling
-
///
-
/// This will install handlers for the spinner until cancelled or dropped, with there
-
/// being only one element handling signals at a time. If the spinner cannot install
-
/// handlers, then it will not attempt to install handlers again, and continue running.
pub fn spinner_to(
    message: impl ToString,
    progress: RenderTarget,