Support :mbox-type for pinned dispatchers#111
Conversation
Also I've added an ability to pass a function instead of class-name. This is useful, when you want to create an message box instance with arguments other than supported by base implementation.
|
This is cool. |
src/actor-context.lisp
Outdated
| (:pinned | ||
| (etypecase eff-mbox-type | ||
| (function | ||
| (funcall eff-mbox-type :max-queue-size queue-size)) |
There was a problem hiding this comment.
I think it would be good to check if the generated instance is at least message-box-base.
|
That's a good point: Actually, |
|
I don't understand whether something else needs to be changed in this regard, or if everything is already fine as is? |
It's fine. |
Also I've added an ability to pass a function instead of class-name. This is useful, when you want to create an message box instance with arguments other than supported by base implementation.
Usage example: