Pong/Library/PackageCache/com.unity.quicksearch@1.6.0-preview.6/Editor/SearchService.cs
/// <summary>
/// Execute a search request that will fetch search results asynchronously.
/// </summary>
/// <param name="context">Search context used to track asynchronous request.</param>
/// <returns>Asynchronous list of search items.</returns>
Execute a search request that will fetch search results asynchronously.
Execute a search request that will fetch search results asynchronously .
public static ISearchList Request(SearchContext context, SearchFlags options = SearchFlags.None)
        {
            if (options.HasFlag(SearchFlags.Synchronous))
            {
                throw new NotSupportedException($"Use {nameof(SearchService)}.{nameof(GetItems)}(context, " +
                                    $"{nameof(SearchFlags)}.{nameof(SearchFlags.Synchronous)}) to fetch items synchronously.");
            }
            ISearchList results = null;
            if (options.HasFlag(SearchFlags.Sorted))
                results = new SortedSearchList(context);
            else
                results = new AsyncSearchList(context);
            results.AddItems(GetItems(context, options));
            return results;
        }
public static ISearchList Request ( SearchContext context , SearchFlags options = SearchFlags . None ) { if ( options . HasFlag ( SearchFlags . Synchronous ) ) { throw new NotSupportedException ( $" Use  { nameof ( SearchService ) } . { nameof ( GetItems ) } (context,  " + $" { nameof ( SearchFlags ) } . { nameof ( SearchFlags . Synchronous ) } ) to fetch items synchronously. " ) ; } ISearchList results = null ; if ( options . HasFlag ( SearchFlags . Sorted ) ) results = new SortedSearchList ( context ) ; else results = new AsyncSearchList ( context ) ; results . AddItems ( GetItems ( context , options ) ) ; return results ; }
Execute a search request that will fetch search results asynchronously.
Execute a search request that will fetch search results asynchronously .
Asynchronous list of search items.
Asynchronous list of search items .
context
SearchContext
Search context used to track asynchronous request.
Search context used to track asynchronous request .
options
SearchFlags