mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-17 21:23:27 +00:00
19 lines
380 B
C#
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);
|
|
}
|
|
}
|