This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% This module implements f-Resilient ♦S failure detector described in | |
| %% "Implementing the weakest failure detector for solving consensus | |
| %% Mikel Larrea, Antonio Fernández Anta, Sergio Arévalo" | |
| -module(failure_detector). | |
| -behaviour(gen_statem). | |
| %% API | |
| -export([start_link/3, | |
| get_leader/0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.concurrent.Await | |
| import scala.concurrent.Future | |
| import scala.concurrent.duration._ | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.language.higherKinds | |
| import scalaz.ContT | |
| import scalaz.std.scalaFuture.futureInstance | |
| object Main { |