IAwaitable.cs 573 B

123456789101112131415161718
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Linq
  5. {
  6. /// <summary>
  7. /// Interface for objects that can be awaited for the completion of an asynchronous operation.
  8. /// </summary>
  9. public interface IAwaitable
  10. {
  11. /// <summary>
  12. /// Gets an awaiter object.
  13. /// </summary>
  14. /// <returns>Awaiter object.</returns>
  15. IAwaiter GetAwaiter();
  16. }
  17. }