Subscribe a new `ShutdownHandle`.
(&self)
| 335 | |
| 336 | /// Subscribe a new `ShutdownHandle`. |
| 337 | pub fn handle(&self) -> ShutdownHandle { |
| 338 | ShutdownHandle { |
| 339 | phase_rx: self.phase_tx.subscribe(), |
| 340 | flat_watch: Arc::clone(&self.flat_watch), |
| 341 | } |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | impl ShutdownHandle { |
no test coverage detected