Adds a lock to this builder.
(&mut self, id: CatalogItemId, lock: tokio::sync::OwnedMutexGuard<()>)
| 1726 | impl WriteLocksBuilder { |
| 1727 | /// Adds a lock to this builder. |
| 1728 | pub fn insert_lock(&mut self, id: CatalogItemId, lock: tokio::sync::OwnedMutexGuard<()>) { |
| 1729 | self.locks.insert(id, Some(lock)); |
| 1730 | } |
| 1731 | |
| 1732 | /// Finish this builder by returning either all of the necessary locks, or none of them. |
| 1733 | /// |
no test coverage detected