IAsyncResult.cs 704 B

1234567891011121314151617181920212223242526272829
  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. /*============================================================
  5. **
  6. ** Interface: IAsyncResult
  7. **
  8. ** Purpose: Interface to encapsulate the results of an async
  9. ** operation
  10. **
  11. ===========================================================*/
  12. using System.Threading;
  13. namespace System
  14. {
  15. public interface IAsyncResult
  16. {
  17. bool IsCompleted { get; }
  18. WaitHandle AsyncWaitHandle { get; }
  19. object? AsyncState { get; }
  20. bool CompletedSynchronously { get; }
  21. }
  22. }