pub fn spawn(session: Session, spec: AutomationSpec) -> AutomationHandleExpand description
Start one background automation loop for one prepared session.
Invalid specs do not panic: for example, every == Duration::ZERO returns a handle whose
status is immediately terminal with AutomationState::Failed.