pub fn stop_live_spectrum_stream(
stream_state: State<'_, SpectrumStreamState>,
) -> Result<(), String>Expand description
Stops the active live spectrum stream task, if one exists.
This is safe to call repeatedly; when no task is active it becomes a no-op. The active task is signaled to stop using its own cancellation flag.