fix two comments from Patrik

- map Iterable to Vector using breakOut instead of «Vector() ++ ...»
- give a name to the Pi sample actor system
This commit is contained in:
Roland 2011-12-13 11:20:36 +01:00
parent db7dd9450c
commit 4b2b41e725
3 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ object Pi extends App {
// ===== Run it =====
// ==================
def calculate(nrOfWorkers: Int, nrOfElements: Int, nrOfMessages: Int) {
val system = ActorSystem()
val system = ActorSystem("PiSystem")
// this latch is only plumbing to know when the calculation is completed
val latch = new CountDownLatch(1)