fix(notification): remove callbacks in favour of mpsc messaging (#64)
This commit is contained in:
@@ -5,6 +5,7 @@ use tokio::sync::mpsc;
|
||||
use tokio::time::interval;
|
||||
use tokio_stream::{wrappers::IntervalStream, StreamMap};
|
||||
|
||||
use crate::common::ClockTypeId;
|
||||
use crate::constants::{FPS_VALUE_MS, TICK_VALUE_MS};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
||||
@@ -25,7 +26,7 @@ pub enum TuiEvent {
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum AppEvent {
|
||||
ClockDone,
|
||||
ClockDone(ClockTypeId, String),
|
||||
}
|
||||
|
||||
pub type AppEventTx = mpsc::UnboundedSender<AppEvent>;
|
||||
|
||||
Reference in New Issue
Block a user