Would be nice if there would be an option to build the AsyncView from an iterator, with optional progress bar of course.
Something like:
AsyncView::from_iterator(it)
with from_iterator(i: I) where I: IntoIterator<Item = V>, V: View or something like this?
Or even
AsyncView::fold_from_iter(it, ListView::new(), |accu, elem| { accu.add_child("", elem); accu });
where the closure folds over the ListView and elem as element from the iterator?
Would be nice if there would be an option to build the AsyncView from an iterator, with optional progress bar of course.
Something like:
with
from_iterator(i: I) where I: IntoIterator<Item = V>, V: Viewor something like this?Or even
where the closure folds over the
ListViewandelemas element from the iterator?