Open
Description
I'm trying to use mailbox to implement a replacement for waitFor when running process.
The problem I'm encountering is that a mailbox only allows a single message at time.
Ignoring the performance concerns for a moment my immediate problem is that when I call put it throws an error saying the mailbox is full (the second time put is called). It looks like the api provides no way to determine if the mailbox is full which means I have to call put and then capture an exception which, whilst it works, really doesn't feel like the correct approach.
So in the end I guess to questions:
- should the api have a method to determine if the mailbox is full?
- should the mailbox allow more than a single message at a time?
Allowing multiple messages would seem to be more performant.