#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously public async ValueTask DisposeAsync() #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously { #if NETSTANDARD2_1 || NETCOREAPP3_1 await OutputStream.DisposeAsync(); await InputStream.DisposeAsync(); #else OutputStream.Dispose(); InputStream.Dispose(); #endif }
public async ValueTask DisposeAsync() { await OutputStream.DisposeAsync(); await InputStream.DisposeAsync(); }