pub fn new(model: Weak<Model>) -> Self {
        Self {
            event_source_registry: Mutex::new(HashMap::new()),
            event_registry: Arc::new(EventRegistry::new()),
            model,
        }
    }
/// Creates a new event source factory.
Creates a new event source factory.
Creates a new event source factory .
pub fn new(model: Weak<Model>) -> Self {
        Self {
            event_source_registry: Mutex::new(HashMap::new()),
            event_registry: Arc::new(EventRegistry::new()),
            model,
        }
    }
pub fn new ( model : Weak < Model > ) -> Self { Self { event_source_registry : Mutex :: new ( HashMap :: new ( ) ) , event_registry : Arc :: new ( EventRegistry :: new ( ) ) , model , } }
Creates a new event source factory.
Creates a new event source factory .
model
Weak<Model>
model
Weak<Model>