Skip to content

Commit

Permalink
refactor(paxos): start splitting out leader election into a separate …
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
shadaj committed Oct 8, 2024
1 parent f5fd452 commit 09146c4
Show file tree
Hide file tree
Showing 3 changed files with 633 additions and 646 deletions.
4 changes: 4 additions & 0 deletions hydroflow_plus/src/singleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,10 @@ impl<'a, T, N: Location<'a>> Optional<T, Bounded, Tick, N> {
.map(q!(|(d, _signal)| d))
}

pub fn then<U>(self, value: Singleton<U, Bounded, Tick, N>) -> Optional<U, Bounded, Tick, N> {
value.continue_if(self)
}

pub fn continue_unless<U>(
self,
other: Optional<U, Bounded, Tick, N>,
Expand Down
Loading

0 comments on commit 09146c4

Please sign in to comment.