MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / sync_with_progress

Method sync_with_progress

src/tracedecay/indexing.rs:384–389  ·  view source on GitHub ↗

Like `sync()`, but calls `on_progress` for spinner updates. Equivalent to `sync_with_progress_verbose(on_progress, |_| {})`.

(&self, on_progress: F)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

syncMethod · 0.80

Calls 1

Tested by

no test coverage detected