Skip to main content

set_waits

Function set_waits 

Source
pub(crate) fn set_waits(
    qt: &CxxQtThread<Sioul>,
    shared: &Arc<Shared>,
    uid: &str,
    other: &str,
    wait: bool,
    gap_minutes: i64,
) -> String
Expand description

Waits for other, or no longer. Without a gap, DEPENDS-ON in the task that waits. With one (gap_minutes: “the answer comes within two weeks”), FINISHTOSTART with its GAP in other, the one that comes first, as sioul tasks import writes it (tasks::set_gap, RFC 9253 §4), and no DEPENDS-ON beside it. No longer: both taken away, and a FINISHTOSTART or NEXT that another application wrote in other for the pair.