IAsyncAwaitable.cs 332 B

1234567891011
  1. namespace XGame.Framework.Asyncs
  2. {
  3. /// <summary>
  4. /// 可被等待异步,实现此接口可使用C# async await 语法实现异步编程
  5. /// </summary>
  6. /// <typeparam name="TAwaitable"></typeparam>
  7. public interface IAsyncAwaitable<TAwaiter> where TAwaiter : IAwaiter
  8. {
  9. TAwaiter GetAwaiter();
  10. }
  11. }