From aefac265f3e41d56f1f9067d585b7cec51137a3f Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 10 Feb 2026 12:19:29 -0600 Subject: [PATCH] try this instead --- src/ui/song_editor.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ui/song_editor.rs b/src/ui/song_editor.rs index cee4550..09c9051 100644 --- a/src/ui/song_editor.rs +++ b/src/ui/song_editor.rs @@ -1422,8 +1422,9 @@ impl SongEditor { handle.abort(); }; let size = slides.len(); - let (task, handle) = Task::run( - channel(size, |mut sender| async move { + let (task, handle) = Task::stream(channel( + size, + |mut sender| async move { let mut slides = slides.into_iter().enumerate(); loop { if let Some((index, mut slide)) = @@ -1443,11 +1444,11 @@ impl SongEditor { break; } } - }), - |(index, slide)| { - Message::UpdateSlide((index, slide.to_owned())) }, - ) + )) + .then(|(index, slide)| { + Task::done(Message::UpdateSlide((index, slide))) + }) .abortable(); // let (task, handle) = Task::perform(