IAsyncDisposable.cs 627 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. using System.Threading.Tasks;
  5. namespace System
  6. {
  7. /// <summary>Provides a mechanism for releasing unmanaged resources asynchronously.</summary>
  8. public interface IAsyncDisposable
  9. {
  10. /// <summary>
  11. /// Performs application-defined tasks associated with freeing, releasing, or
  12. /// resetting unmanaged resources asynchronously.
  13. /// </summary>
  14. ValueTask DisposeAsync();
  15. }
  16. }