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

PriorityChannel need to access the array of items and delete items from the queue #3431

Open
Gibbz opened this issue Oct 20, 2024 · 0 comments

Comments

@Gibbz
Copy link

Gibbz commented Oct 20, 2024

Im setting up a command queue for my project. I want to delete duplicate items. So I want to get a list of all the items so i can search through them. Basically doing a custom filter. That way certain items can only have a single item in the queue, while others can have multiple items in the queue.

Either direct access to the mutex which is private.
Or some way to use a predicate to delete items?
Or can I delete items during the order sortings?

pub static QUEUE_CHANNEL: PriorityChannel::<CriticalSectionRawMutex, BleCommand, Min, 16> = PriorityChannel::new(); 
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

No branches or pull requests

1 participant