mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
25 lines
858 B
C#
25 lines
858 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.Threading;
|
|||
|
|
|
|||
|
|
namespace Flow.Launcher.Plugin
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Asynchronous Dialog Jump Model
|
|||
|
|
/// </summary>
|
|||
|
|
public interface IAsyncDialogJump : IFeatures
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Asynchronous querying for Dialog Jump window
|
|||
|
|
/// </summary>
|
|||
|
|
/// <para>
|
|||
|
|
/// If the Querying method requires high IO transmission
|
|||
|
|
/// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncDialogJump interface
|
|||
|
|
/// </para>
|
|||
|
|
/// <param name="query">Query to search</param>
|
|||
|
|
/// <param name="token">Cancel when querying job is obsolete</param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task<List<DialogJumpResult>> QueryDialogJumpAsync(Query query, CancellationToken token);
|
|||
|
|
}
|
|||
|
|
}
|