pub async fn sequence<I, E>(
iter: I,
env: &mut E,
) -> Result<BoxFuture<'static, ExitStatus>, <I::Item as Spawn<E>>::Error>where
E: IsInteractiveEnvironment + LastStatusEnvironment + ReportErrorEnvironment + ?Sized,
I: IntoIterator,
I::Item: Spawn<E>,
<I::Item as Spawn<E>>::Error: IsFatalError,Expand description
Spawns any iterable collection of sequential items.
Commands are sequentially executed regardless of the exit status of previous commands. All non-fatal errors are reported and swallowed, however, “fatal” errors are bubbled up and the sequence terminated.