diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-10-01 17:13:29 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-10-02 19:53:50 +0300 |
commit | 6d5471a958c9cdde8fefb229597d3a73cdb50ea8 (patch) | |
tree | 95e3f6fc079629f648ef772ec93780fecc9c9194 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs | |
parent | d8f6a4e82d863ed0a4340a3d68cbf3b5a9e961ac (diff) |
[Misc] Add cancellation tokens to SemaphoreSlim.WaitAsync where applicable.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs index f0cd5c416a..eae4e86ec8 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs @@ -109,7 +109,7 @@ namespace MonoDevelop.Components.MainToolbar //we don't want to use all CPU doing same thing, instead 1st one will create cache, others will wait here
//and then all will use cached version...
try { - await allFilesLock.WaitAsync (); + await allFilesLock.WaitAsync (token); files = allFilesCache = allFilesCache ?? GenerateAllFiles (); if (token.IsCancellationRequested) return; |