pub fn update_book<T>(
store: &CloudStore,
instance_id: &str,
change: impl FnOnce(&mut Vec<LocalWorker>) -> T,
) -> Result<T, CloudError>Expand description
Read-modify-write the book under its lock.
pub fn update_book<T>(
store: &CloudStore,
instance_id: &str,
change: impl FnOnce(&mut Vec<LocalWorker>) -> T,
) -> Result<T, CloudError>Read-modify-write the book under its lock.