Use a queue to communicate matches from browse to matches #202

Closed
opened 2024-08-31 09:32:02 +02:00 by wojtek · 1 comment
Owner

Currently browse does a full fetch and only once it's done it passes the items to matches. This means that matches needs to be able to handle an entire vector (which may be empty) at all times slightly complicating the code. It would be better if it could operate on a queue instead and operate on one item at a time.

Something similar to an event queue would be good. The event queue itself cannot be used because any item on the queue triggers an event regardless of whether the system is ready for it.

Currently browse does a full fetch and only once it's done it passes the items to matches. This means that matches needs to be able to handle an entire vector (which may be empty) at all times slightly complicating the code. It would be better if it could operate on a queue instead and operate on one item at a time. Something similar to an event queue would be good. The event queue itself cannot be used because any item on the queue triggers an event regardless of whether the system is ready for it.
wojtek added this to the v1.0.0-alpha milestone 2024-08-31 09:32:02 +02:00
wojtek added the
enhancement
label 2024-08-31 09:32:02 +02:00
wojtek added this to the Album tracking project 2024-08-31 09:32:02 +02:00
wojtek added
enabler
and removed
enhancement
labels 2024-08-31 09:32:48 +02:00
Author
Owner
Use https://doc.rust-lang.org/std/sync/mpsc/index.html
wojtek added reference 202---use-a-queue-to-communicate-matches-from-browse-to-matches 2024-08-31 14:44:04 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: wojtek/musichoard#202
No description provided.