Function conch_runtime::spawn::loop_cmd
[−]
[src]
pub fn loop_cmd<S, E: ?Sized>(
invert_guard_status: bool,
guard_body_pair: GuardBodyPair<Vec<S>>
) -> Loop<S, E> where
S: SpawnRef<E>,
Spawns a loop command such as While or Until using a guard and a body.
The guard will be repeatedly executed and its exit status used to determine
if the loop should be broken, or if the body should be executed. If
invert_guard_status == false, the loop will continue as long as the guard
exits successfully. If invert_guard_status == true, the loop will continue
until the guard exits successfully.
Any nonfatal errors will be swallowed and reported. Fatal errors will be propagated to the caller.