There was an error while loading. Please reload this page.
1 parent 810724e commit 04dd2bcCopy full SHA for 04dd2bc
1 file changed
src/sig.rs
@@ -186,6 +186,10 @@ pub async fn run(
186
let mut paused = false;
187
188
loop {
189
+ // While paused:
190
+ // - Keep watching pause state changes so resume is immediate.
191
+ // - Keep watching the input channel to detect EOF and terminate cleanly.
192
+ // Incoming lines are intentionally dropped while paused.
193
if paused {
194
tokio::select! {
195
biased;
@@ -206,6 +210,9 @@ pub async fn run(
206
210
continue;
207
211
}
208
212
213
+ // When render throttling is enabled:
214
+ // - Wait for the next render tick before processing input.
215
+ // - Allow pause changes to interrupt the wait so Ctrl+S stays responsive.
209
216
if let Some(interval) = &mut maybe_interval {
217
218
0 commit comments