Like `sync()`, but calls `on_progress` for spinner updates. Equivalent to `sync_with_progress_verbose(on_progress, |_| {})`.
(&self, on_progress: F)
| 382 | /// Like `sync()`, but calls `on_progress` for spinner updates. |
| 383 | /// Equivalent to `sync_with_progress_verbose(on_progress, |_| {})`. |
| 384 | pub async fn sync_with_progress<F>(&self, on_progress: F) -> Result<SyncResult> |
| 385 | where |
| 386 | F: Fn(usize, usize, &str), |
| 387 | { |
| 388 | self.sync_with_progress_verbose(on_progress, |_| {}).await |
| 389 | } |
| 390 | |
| 391 | /// Sync only the specified files if they are stale, then recheck. |
| 392 | /// |
no test coverage detected