Crates.io | asyncgit |
lib.rs | asyncgit |
version | 0.26.3 |
source | src |
created_at | 2020-03-24 20:23:41.32818 |
updated_at | 2024-06-02 12:24:26.862105 |
description | allow using git2 in a asynchronous context |
homepage | https://github.com/extrawurst/gitui |
repository | https://github.com/extrawurst/gitui |
max_upload_size | |
id | 222423 |
size | 327,297 |
allow using git2 in an asynchronous context
This crate is designed as part of the gitui project.
asyncgit
provides the primary interface to interact with git repositories. It is split into the main module and a sync
part. The latter provides convenience wrapper for typical usage patterns against git repositories.
The primary goal however is to allow putting certain (potentially) long running git2 calls onto a thread pool.crossbeam-channel is then used to wait for a notification confirming the result.
In gitui
this allows the main-thread and therefore the ui to stay responsive.