Skip to main content

update

Function update 

Source
fn update<R>(store: &Store, f: impl FnOnce(&mut Vec<Value>) -> R) -> Option<R>
Expand description

Read, change and write back the list in one transaction: closes, reopens and deletes run concurrently. A change counts as one to the workspace’s windows, so the saver saves it. None when the store couldn’t be written.