IAsyncDisposable.cs 513 B

12345678910111213141516
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. // See https://github.com/dotnet/csharplang/blob/master/proposals/async-streams.md for the definition of this interface
  5. // and the design rationale. (8/30/2017)
  6. using System.Threading.Tasks;
  7. namespace System
  8. {
  9. public interface IAsyncDisposable
  10. {
  11. ValueTask DisposeAsync();
  12. }
  13. }