Skip to content

Conversation

PastMoments
Copy link

This PR attempts to implement priority messaging from OTP 28.0 in a backwards compatible way.

A new PrioritySubject is used internally that holds the priority alias, created with priority_subject(). Its api is identical to a regular subject created with new_subject, with only its behaviour being different (priority messages enters the queue in front of regular messages). Unfortunately send_after does not actually support sending to process aliases, so that remains unimplemented.

@lpil
Copy link
Member

lpil commented Sep 10, 2025

Hello! Thank you for this, but we do not accept unplanned changes to the core libraries. If you have a proposal for a change please open an issue detailing the use cases and the suggested design, along with any other options and considerations. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants