Skip to main content

decision_lock

Function decision_lock 

Source
fn decision_lock(dream_id: &str) -> Arc<Mutex<()>> ⓘ
Expand description

One decision about a dream at a time. The RPC engine runs requests at once (two windows, a double click), and an apply that is checked as ready, writes files and only then moves the dream must not meet a reject that sees no applied operation yet: the files would change under a rejected dream, which a revert (it needs applied) cannot undo. The guard is held to the end of the apply, reject or revert.