[][src]Function web_glitz::task::sequence_iter

pub fn sequence_iter<I, Ec>(iterator: I) -> SequenceIter<I::Item, Ec> where
    I: IntoIterator,
    I::Item: GpuTask<Ec, Output = ()>, 

Combines all tasks in an iterator, waiting for all tasks to complete in order.

This returns a new "sequenced" task. This sequenced task must progress its sub-tasks in order. The sequenced task will finish when all sub-tasks have finished. When it finishes, it will output (). All tasks in the iterator must also output ().

This combinator allocates. See also the [sequence_all] macro for an alternative that does not allocate if the set of tasks that are to be joined is statically known.

Panics

Panics if the ContextIds of any of the tasks in the iterator are not compatible.