Update name

This commit is contained in:
Jack251970 2025-05-03 08:58:40 +08:00
parent e0721aae14
commit aa0f9b2e73
2 changed files with 7 additions and 7 deletions

View file

@ -7,17 +7,17 @@ namespace Flow.Launcher.Plugin
/// <summary>
/// Asynchronous Query Model for Flow Launcher When Query Text is Empty
/// </summary>
public interface IAsyncEmptyQuery
public interface IAsyncHomeQuery
{
/// <summary>
/// Asynchronous Querying When Query Text is Empty
/// </summary>
/// <para>
/// If the Querying method requires high IO transmission
/// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncEmptyQuery interface
/// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncHomeQuery interface
/// </para>
/// <param name="token">Cancel when querying job is obsolete</param>
/// <returns></returns>
Task<List<Result>> EmptyQueryAsync(CancellationToken token);
Task<List<Result>> HomeQueryAsync(CancellationToken token);
}
}

View file

@ -8,10 +8,10 @@ namespace Flow.Launcher.Plugin
/// Synchronous Query Model for Flow Launcher When Query Text is Empty
/// <para>
/// If the Querying method requires high IO transmission
/// or performaing CPU intense jobs (performing better with cancellation), please try the IAsyncEmptyQuery interface
/// or performaing CPU intense jobs (performing better with cancellation), please try the IAsyncHomeQuery interface
/// </para>
/// </summary>
public interface IEmptyQuery : IAsyncEmptyQuery
public interface IHomeQuery : IAsyncHomeQuery
{
/// <summary>
/// Querying When Query Text is Empty
@ -21,8 +21,8 @@ namespace Flow.Launcher.Plugin
/// </para>
/// </summary>
/// <returns></returns>
List<Result> EmptyQuery();
List<Result> HomeQuery();
Task<List<Result>> IAsyncEmptyQuery.EmptyQueryAsync(CancellationToken token) => Task.Run(EmptyQuery);
Task<List<Result>> IAsyncHomeQuery.HomeQueryAsync(CancellationToken token) => Task.Run(HomeQuery);
}
}