Returns a receiver that can be used to listen to engine state updates.
(&self)
| 74 | |
| 75 | /// Returns a receiver that can be used to listen to engine state updates. |
| 76 | pub fn state_subscribe(&self) -> tokio::sync::watch::Receiver<EngineState> { |
| 77 | self.state_sender.subscribe() |
| 78 | } |
| 79 | |
| 80 | /// Returns a receiver that can be used to listen to engine queue length updates. |
| 81 | pub fn queue_length_subscribe(&self) -> tokio::sync::watch::Receiver<usize> { |