pub fn sequence(cmds: Vec<Option<Cmd>>) -> Option<Cmd>Expand description
Sequence commands to run one at a time, in order.
Unlike batch, sequenced commands run one after another. Use this when the order of execution matters.
ยงExample
use bubbletea::{Cmd, Message, sequence};
let cmd = sequence(vec![
Some(Cmd::new(|| Message::new("first"))),
Some(Cmd::new(|| Message::new("second"))),
]);