WIP - Wait for code action anchors to be valid
This commit is contained in:
parent
d358072c74
commit
4e748b188e
2 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue