[−][src]Function web_glitz::task::join_iter
pub fn join_iter<I, Ec>(iterator: I) -> JoinIter<I::Item, Ec> where
I: IntoIterator,
I::Item: GpuTask<Ec, Output = ()>,
Combines all tasks in an iterator, waiting for all tasks to complete in no particular order.
This returns a new "joined" task. This joined task may progress the its sub-tasks in any order.
The joined task will finish when both sub-tasks have finished. When it finishes, it will output
(). All tasks in the iterator must also output ().
This combinator allocates. See also the [join_all] macro for an alternative that does not allocate if the set of tasks that are to be sequenced is statically known.
Panics
Panics if the ContextIds of any of the tasks in the iterator are not compatible.