| 1 | struct Private; |
| 2 | |
| 3 | pub struct ChangeDetector { |
| 4 | _private: Private, |
| 5 | } |
| 6 | |
| 7 | impl ChangeDetector { |
| 8 | pub fn new() -> std::io::Result<Self> { |
| 9 | Ok(Self { _private: Private }) |
| 10 | } |
| 11 | |
| 12 | pub async fn wait_for_change(&mut self) { |
| 13 | // No platform independent way, but checking every so often is fine for a fallback |
| 14 | tokio::time::sleep(std::time::Duration::from_secs(60)).await; |
| 15 | } |
| 16 | } |