Daemonize the musicbrainz thread #217
10
src/tui/lib/external/musicbrainz/daemon/mod.rs
vendored
10
src/tui/lib/external/musicbrainz/daemon/mod.rs
vendored
@ -9,11 +9,6 @@ use crate::tui::{
|
||||
},
|
||||
};
|
||||
|
||||
enum JobError {
|
||||
JobQueueEmpty,
|
||||
EventChannelDisconnected,
|
||||
}
|
||||
|
||||
pub struct MusicBrainzDaemon {
|
||||
musicbrainz: Box<dyn IMusicBrainz>,
|
||||
job_receiver: mpsc::Receiver<Job>,
|
||||
@ -66,6 +61,11 @@ impl JobInstance {
|
||||
}
|
||||
}
|
||||
|
||||
enum JobError {
|
||||
JobQueueEmpty,
|
||||
EventChannelDisconnected,
|
||||
}
|
||||
|
||||
pub struct JobChannel {
|
||||
sender: mpsc::Sender<Job>,
|
||||
receiver: mpsc::Receiver<Job>,
|
||||
|
Loading…
Reference in New Issue
Block a user