Closed blueforesticarus closed 1 week ago
This code would actually compile on the main
branch of kameo. I've done some updates to make some of the requests more flexbile. See https://github.com/tqwewe/kameo/pull/71.
I need to publish a new version soon with some of the improvements present in main branch.
However, not all can be made generic. For example, you cannot call .send_sync()
on a bounded mailbox with a tell request, since sending the message needs to await mailbox capacity.
If you haven't already seen this in the book, there's a nice table showing an overview of what request methods are available for each mailbox: https://docs.page/tqwewe/kameo/core-concepts/requests#supported-requests
The following is not possible because try_send_sync is only defined for specific mailboxes. (same for all other send variants as near I can tell).