Flow.Launcher/Flow.Launcher.Plugin/Interfaces/IAsyncHomeQuery.cs

24 lines
810 B
C#
Raw Normal View History

2025-03-29 14:03:30 +00:00
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Flow.Launcher.Plugin
{
/// <summary>
/// Asynchronous Query Model for Flow Launcher When Query Text is Empty
/// </summary>
public interface IAsyncHomeQuery : IFeatures
2025-03-29 14:03:30 +00:00
{
/// <summary>
/// Asynchronous Querying When Query Text is Empty
/// </summary>
/// <para>
/// If the Querying method requires high IO transmission
2025-05-03 00:58:40 +00:00
/// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncHomeQuery interface
2025-03-29 14:03:30 +00:00
/// </para>
/// <param name="token">Cancel when querying job is obsolete</param>
/// <returns></returns>
2025-05-03 00:58:40 +00:00
Task<List<Result>> HomeQueryAsync(CancellationToken token);
2025-03-29 14:03:30 +00:00
}
}