6 ms·
In Scala/Akka, you could use the ask operator and compose the resulting Futures, something like this: for { a <- aProviderActor ? gimmeA b <- bProvid
by sbalea 6y ago
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
- smabie 6y agoYeah, but you're blocking the thread. It's very very easy for you to deadlock the entire system writing code like this.