Replacing !!! with ?
This commit is contained in:
parent
fd5afde4ff
commit
fa0478bc32
26 changed files with 102 additions and 100 deletions
|
|
@ -104,7 +104,7 @@ object Pi extends App {
|
|||
val start = now
|
||||
|
||||
//send calculate message
|
||||
master.!!.
|
||||
master.?[Double](Calculate, timeout = 60000).
|
||||
await.resultOrException match {//wait for the result, with a 60 seconds timeout
|
||||
case Some(pi) =>
|
||||
EventHandler.info(this, "\n\tPi estimate: \t\t%s\n\tCalculation time: \t%s millis".format(pi, (now - start)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue