(initial_state: T)
| 8 | |
| 9 | impl<T: Clone + 'static> Store<T> { |
| 10 | pub fn new(initial_state: T) -> Self { |
| 11 | Self { |
| 12 | state: Arc::new(Mutex::new(initial_state)), |
| 13 | subscribers: Vec::new(), |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | pub fn dispatch<A>(&mut self, action: A) |
| 18 | where |
nothing calls this directly
no outgoing calls
no test coverage detected