diff options
author | Marius Ungureanu <teromario@yahoo.com> | 2017-02-13 16:05:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 16:05:42 +0300 |
commit | 4f061313b4da31c5b9bff5844b0d1a5faa707bba (patch) | |
tree | b1c3e535dc438a248c71ac41d9b4c3fde50692c7 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks | |
parent | 0413426afbfd24395b53196da16886125ca1436a (diff) |
Async/await optimizations (#1861)
* [Core] Async/await optimizations
Remove async/await where not needed.
Add ConfigureAwait for all awaits inside a Task.Run or wherever a method already did it.
* [Ide] Async/await optimizations
Remove async/await where not needed.
Add ConfigureAwait for all awaits inside a Task.Run or
wherever a method already did it.
* [Core] Add matching assert to Workspace.Build as Clean has one.
* [Core] Address feedback to 764e103fdc90288b0f56abafccbf95819b175200
* [Core] Address feedback to 764e103fdc90288b0f56abafccbf95819b175200
* [Core,Ide] Address feedback from PR.
* [Core, Ide] Revert async -> non-async conversion for methods which have throw statements.
* [Ide] Address feedback from PR.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs index 9df4ad07eb..c63799ea16 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs @@ -183,7 +183,7 @@ namespace MonoDevelop.Ide.Tasks var file = doc.FileName; Task.Run (async () => { try { - tags.UpdateTags (project, file, await pd.GetTagCommentsAsync (token)); + tags.UpdateTags (project, file, await pd.GetTagCommentsAsync (token).ConfigureAwait (false)); } catch (TaskCanceledException) { } catch (AggregateException ae) { ae.Flatten ().Handle (x => x is TaskCanceledException); |