Skip to main content

Crate endringer_async

Crate endringer_async 

Source
Expand description

Async facade for endringer.

All operations delegate to the synchronous endringer implementation via tokio::task::spawn_blocking, keeping blocking VCS I/O on a dedicated thread pool and freeing the async executor thread.

§Example

use endringer_async::AsyncRepository;

let repo = AsyncRepository::open(std::path::Path::new(".")).await?;
let digest = repo.status_digest().await?;
println!("{} @ {}", digest.current_branch, digest.last_commit_id.short());

Re-exports§

pub use async_api::AsyncRepository;

Modules§

async_api
AsyncRepository — async wrapper around endringer::repository::Repository.