Skip to content

From iterator? #7

@matthiasbeyer

Description

@matthiasbeyer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions