fix CallingThreadMailbox.numberOfMessages
This commit is contained in:
parent
e9a6c16bdc
commit
ca9d6b369d
2 changed files with 18 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ class CallingThreadMailbox(_receiver: ActorCell, val mailboxType: MailboxType) e
|
|||
override def enqueue(receiver: ActorRef, msg: Envelope): Unit = throw new UnsupportedOperationException("CallingThreadMailbox cannot enqueue normally")
|
||||
override def dequeue(): Envelope = throw new UnsupportedOperationException("CallingThreadMailbox cannot dequeue normally")
|
||||
override def hasMessages: Boolean = q.get.q.hasMessages
|
||||
override def numberOfMessages: Int = -1
|
||||
override def numberOfMessages: Int = 0
|
||||
|
||||
def queue = q.get
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue