File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,9 @@ private async void QueryResults()
482
482
ProgressBarVisibility = Visibility . Hidden ;
483
483
_isQueryRunning = true ;
484
484
485
+ // Switch to ThreadPool thread
486
+ await TaskScheduler . Default ;
487
+
485
488
var query = QueryBuilder . Build ( QueryText . Trim ( ) , PluginManager . NonGlobalPlugins ) ;
486
489
487
490
// handle the exclusiveness of plugin using action keyword
@@ -543,7 +546,7 @@ private async void QueryResults()
543
546
// Local function
544
547
async Task QueryTask ( PluginPair plugin )
545
548
{
546
- // Since it is wrapped within a Task.Run , the synchronous context is null
549
+ // Since it is wrapped within a ThreadPool Thread , the synchronous context is null
547
550
// Task.Yield will force it to run in ThreadPool
548
551
await Task . Yield ( ) ;
549
552
You can’t perform that action at this time.
0 commit comments