From ec5d02d5c27cc0b1c1dfcf03e21a0e4680c55cdb Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Fri, 24 Jan 2025 15:32:22 -0700 Subject: [PATCH] Use `send` instead of `feed` on terminal events channel (#23631) Potentially fixes a bug where tasks are not marked as finished. Release Notes: - N/A --- crates/terminal/src/terminal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 5fb8941ebc..c6c5486126 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -493,7 +493,7 @@ impl TerminalBuilder { while let Some(event) = events_rx.next().await { // Process the first event immediately to reduce latency accumulated_events_tx - .feed(EventOrAccumulator::Event(event)) + .send(EventOrAccumulator::Event(event)) .await?; 'outer: loop { let start_time = Instant::now(); @@ -520,7 +520,7 @@ impl TerminalBuilder { } } accumulated_events_tx - .feed(EventOrAccumulator::Accumulator(event_accumulator)) + .send(EventOrAccumulator::Accumulator(event_accumulator)) .await?; } }