I may have understood this incorrectly, but when I send messages to an actor that has a bounded sized mailbox with a overflow policy of block, it doesn't appear to block and instead I'm getting QueueCapacityExceededException.
If I remove the mailbox-size and overflow-policy, the example works, it sends 100 messages, and receives them all, as does setting the mailbox size to >100 as it doesn't fill up. However, as it stands the sending doesn't block, and the exception is thrown.
What's the correct way to block the sender in this case?
I may have understood this incorrectly, but when I send messages to an actor that has a bounded sized mailbox with a overflow policy of block, it doesn't appear to block and instead I'm getting QueueCapacityExceededException.
A simple example is:
If I remove the mailbox-size and overflow-policy, the example works, it sends 100 messages, and receives them all, as does setting the mailbox size to >100 as it doesn't fill up. However, as it stands the sending doesn't block, and the exception is thrown.
What's the correct way to block the sender in this case?