(store: Arc<Store>, interval: Duration, timeout: Duration)
| 124 | /// deployments. |
| 125 | #[must_use] |
| 126 | pub fn spawn_with(store: Arc<Store>, interval: Duration, timeout: Duration) -> Self { |
| 127 | let (tx, rx) = watch::channel(HealthState::Initializing); |
| 128 | tokio::spawn(monitor_loop(store, tx, interval, timeout)); |
| 129 | Self { receiver: rx } |
| 130 | } |
| 131 | |
| 132 | /// Subscribe to state updates. |
| 133 | /// |
nothing calls this directly
no test coverage detected