IAsyncDisposable.cs 547 B

1234567891011121314151617181920
  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. #if !HAS_ASYNCDISPOSABLE
  7. using System.Threading.Tasks;
  8. namespace System
  9. {
  10. public interface IAsyncDisposable
  11. {
  12. ValueTask DisposeAsync();
  13. }
  14. }
  15. #endif