mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 08:44:29 +08:00
17 lines
512 B
C#
17 lines
512 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
||
// SPDX-License-Identifier: Apache-2.0
|
||
|
||
namespace GFramework.Core.Abstractions.Query;
|
||
|
||
/// <summary>
|
||
/// 异步查询接口,定义了执行异步查询操作的方法
|
||
/// </summary>
|
||
/// <typeparam name="TResult">查询结果的类型</typeparam>
|
||
public interface IAsyncQuery<TResult>
|
||
{
|
||
/// <summary>
|
||
/// 执行异步查询操作
|
||
/// </summary>
|
||
/// <returns>返回查询结果的Task,结果类型为TResult</returns>
|
||
Task<TResult> DoAsync();
|
||
} |