fix: main thread deadlock cause by calling .Result directly (#1720)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-08-12 16:03:58 +08:00
parent 20ca646307
commit bd81ccd94f
29 changed files with 475 additions and 338 deletions

View File

@@ -10,6 +10,11 @@ namespace SourceGit.Commands
Args = "rev-parse --show-toplevel";
}
public Result GetResult()
{
return ReadToEnd();
}
public async Task<Result> GetResultAsync()
{
return await ReadToEndAsync().ConfigureAwait(false);