erlang icon indicating copy to clipboard operation
erlang copied to clipboard

Add `priority_subject` to send priority messages

Open PastMoments opened this issue 3 months ago • 1 comments

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.

PastMoments avatar Sep 10 '25 16:09 PastMoments

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!

lpil avatar Sep 10 '25 17:09 lpil