Files
sharpcompress/src/SharpCompress/Common/Volume.Async.cs
Adam Hathcock 5152e3197e fix build flags
2026-01-22 15:12:18 +00:00

19 lines
380 B
C#

using System;
using System.Threading.Tasks;
namespace SharpCompress.Common;
public abstract partial class Volume
{
public virtual async ValueTask DisposeAsync()
{
#if LEGACY_DOTNET
_actualStream.Dispose();
await Task.CompletedTask;
#else
await _actualStream.DisposeAsync().ConfigureAwait(false);
#endif
GC.SuppressFinalize(this);
}
}