WIP - Wait for code action anchors to be valid

This commit is contained in:
Max Brunsfeld 2022-02-14 18:05:24 -08:00
parent d358072c74
commit 4e748b188e
2 changed files with 20 additions and 4 deletions

View file

@ -216,6 +216,16 @@ impl Global {
}
}
impl FromIterator<Local> for Global {
fn from_iter<T: IntoIterator<Item = Local>>(locals: T) -> Self {
let mut result = Self::new();
for local in locals {
result.observe(local);
}
result
}
}
impl Ord for Lamport {
fn cmp(&self, other: &Self) -> Ordering {
// Use the replica id to break ties between concurrent events.