12345678910111213141516 |
- #[rustfmt::skip]
- use flowy_dispatch::prelude::*;
- use std::sync::Once;
- #[allow(dead_code)]
- pub fn setup_env() {
- static INIT: Once = Once::new();
- (|| env_logger::init());
- }
- pub fn init_dispatch<F>(module_factory: F) -> EventDispatch
- where
- F: FnOnce() -> Vec<Module>,
- {
- EventDispatch::construct(module_factory)
- }
|