Beispiel #1
0
        private async Task UpdateResultsFromSuggestionAsync(List <Result> results, string keyword, string subtitle,
                                                            SearchSource searchSource, Query query, CancellationToken token)
        {
            if (_settings.EnableSuggestion)
            {
                var suggestions = await SuggestionsAsync(keyword, subtitle, searchSource, token).ConfigureAwait(false);

                var enumerable = suggestions?.ToList();
                if (token.IsCancellationRequested || enumerable is not {
                    Count : > 0
                })