mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
23 lines
810 B
C#
23 lines
810 B
C#
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
|
|
{
|
|
/// <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 IAsyncHomeQuery interface
|
|
/// </para>
|
|
/// <param name="token">Cancel when querying job is obsolete</param>
|
|
/// <returns></returns>
|
|
Task<List<Result>> HomeQueryAsync(CancellationToken token);
|
|
}
|
|
}
|