An Akka/Scala promise that requires two actors to complete
问题 I am building a stock market application using Scala and Akka. The market matches buyers and sellers and then sends a Promise[Transaction] to both the buyer and the seller that needs to be completed (at some point) in order for the transaction to be processed. Issue is that the promise could complete with failure because either buyer has insufficient funds, seller has insufficient shares. How can I create a Scala promise that requires the coordination of two actors to complete? 回答1: You are