Update to a working version of Scalariform
This commit is contained in:
parent
cae070bd93
commit
c66ce62d63
616 changed files with 5966 additions and 5436 deletions
|
|
@ -52,16 +52,16 @@ private[testkit] class CallingThreadDispatcherQueues extends Extension {
|
|||
queues = (Map.newBuilder[CallingThreadMailbox, Set[WeakReference[MessageQueue]]] /: queues) {
|
||||
case (m, (k, v)) ⇒
|
||||
val nv = v filter (_.get ne null)
|
||||
if (nv.isEmpty) m else m += (k -> nv)
|
||||
if (nv.isEmpty) m else m += (k → nv)
|
||||
}.result
|
||||
}
|
||||
|
||||
protected[akka] def registerQueue(mbox: CallingThreadMailbox, q: MessageQueue): Unit = synchronized {
|
||||
if (queues contains mbox) {
|
||||
val newSet = queues(mbox) + new WeakReference(q)
|
||||
queues += mbox -> newSet
|
||||
queues += mbox → newSet
|
||||
} else {
|
||||
queues += mbox -> Set(new WeakReference(q))
|
||||
queues += mbox → Set(new WeakReference(q))
|
||||
}
|
||||
val now = System.nanoTime
|
||||
if (now - lastGC > 1000000000l) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue