Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Queue(M) for Mailbox(M) #19

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ysbaddaden
Copy link
Owner

Mailboxes no longer inherit from Channel(M) but use a tailored solution for agent mailboxes that's simpler and with less overall allocations (thanks to Syn::Core).

Kept as DRAFT because:

  • This is controversial:
    • we might want timeouts (thus select) but maybe the timeouts should happen differently (e.g. sending a message to the mailbox);
    • we might want to replace the mailbox with a custom Channel(T) but there is no guarantee that Mailbox(M) will always map to a Channel(M). We could wrap M to pass Earl specific messages (e.g. timeout),
  • The new Queue(M) object doesn't have any test.

@ysbaddaden ysbaddaden added the mailbox Related to Earl::Mailbox (channels) label Sep 16, 2023
@ysbaddaden ysbaddaden self-assigned this Sep 16, 2023
Mailboxes no longer inherit from `Channel(M)` but use a tailored
solution for agent mailboxes that's simpler and with less overall
allocations (thanks to Syn::Core).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mailbox Related to Earl::Mailbox (channels)
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant