News for hackers. Stuff that matters.
Re:The Zen of Erlang (2016) by sbalea on Monday July 20, 2020 @08:58AM (#23897331)
In Scala/Akka, you could use the ask operator and compose the resulting Futures, something like this:

  for {
    a <- aProviderActor ? gimmeA
    b <- bProviderActor ? gimmeB
    aPlusB <- adderActor ? (add, a, b)
  } yield aPlusB
Re:The Zen of Erlang (2016) by smabie on Monday July 20, 2020 @12:49PM (#23899588)
Yeah, but you're blocking the thread. It's very very easy for you to deadlock the entire system writing code like this.