changeset 61590 | 94ab348eaab2 |
parent 57417 | 29fe9bac501b |
child 64370 | 865b39487b5d |
--- a/src/Pure/Concurrent/mailbox.scala Fri Nov 06 14:43:05 2015 +0100 +++ b/src/Pure/Concurrent/mailbox.scala Fri Nov 06 18:15:35 2015 +0100 @@ -17,7 +17,7 @@ class Mailbox[A] private() { - private val mailbox = Synchronized(List.empty[A]) + private val mailbox = Synchronized[List[A]](Nil) override def toString: String = mailbox.value.reverse.mkString("Mailbox(", ",", ")") def send(msg: A): Unit = mailbox.change(msg :: _)