From f0325983082d52d6363d025a8626725ebfcc0825 Mon Sep 17 00:00:00 2001 From: DanielN Date: Fri, 24 Jan 2020 23:29:04 +0100 Subject: [PATCH] move task.result so the manager is disposed instead of the task --- docs/using/github.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/using/github.md b/docs/using/github.md index 0154c03ce..b3e487ebf 100644 --- a/docs/using/github.md +++ b/docs/using/github.md @@ -50,9 +50,9 @@ using System.Threading.Tasks; **`static async Task Main()`** ~~~cs -using (var mgr = UpdateManager.GitHubUpdateManager("https://github.com/myuser/myapp")) +using (var mgr = UpdateManager.GitHubUpdateManager("https://github.com/myuser/myapp").Result) { - await mgr.Result.UpdateApp(); + await mgr.UpdateApp(); } ~~~