parent
8b78357cde
commit
a2c137b256
1 changed files with 2 additions and 1 deletions
|
|
@ -1393,6 +1393,7 @@ impl SongEditor {
|
|||
use cosmic::iced_futures::futures::stream;
|
||||
// use cosmic::iced_futures::futures::{Stream, StreamExt};
|
||||
// use cosmic::iced_futures::stream::channel;
|
||||
use cosmic::task::stream;
|
||||
let font_db = Arc::clone(&self.font_db);
|
||||
// need to test to see which of these methods yields faster
|
||||
// text_svg slide creation. There is a small thought in me that
|
||||
|
|
@ -1424,7 +1425,7 @@ impl SongEditor {
|
|||
handle.abort();
|
||||
};
|
||||
let size = slides.len();
|
||||
let (task, handle) = Task::stream(stream::iter(
|
||||
let (task, handle) = stream(stream::iter(
|
||||
slides.into_iter().enumerate().map(
|
||||
move |(index, mut slide)| {
|
||||
text_svg::text_svg_generator(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue